authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-01 03:53:58+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-10-01 03:53:58+02:00
log5db04e05951d46709dba0316bc7676a19399337e
tree79878f5462a67df11a06fd4b41ae6b83a7e0038f
parent496a067d3f7c2d48c68ff0adae389994e68b70ba
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.elf: Define EI_(OSABI,ABIVERSION,PAD) constants.


1 files changed, 7 insertions(+), 4 deletions(-)

lib/std/elf.zig+7-4
...@@ -663,21 +663,24 @@ pub fn int32(need_bswap: bool, int_32: anytype, comptime Int64: anytype) Int64 {...@@ -663,21 +663,24 @@ pub fn int32(need_bswap: bool, int_32: anytype, comptime Int64: anytype) Int64 {
663 }663 }
664}664}
665665
666pub const EI_NIDENT = 16;
667
668pub const EI_CLASS = 4;
669pub const ELFCLASSNONE = 0;666pub const ELFCLASSNONE = 0;
670pub const ELFCLASS32 = 1;667pub const ELFCLASS32 = 1;
671pub const ELFCLASS64 = 2;668pub const ELFCLASS64 = 2;
672pub const ELFCLASSNUM = 3;669pub const ELFCLASSNUM = 3;
673670
674pub const EI_DATA = 5;
675pub const ELFDATANONE = 0;671pub const ELFDATANONE = 0;
676pub const ELFDATA2LSB = 1;672pub const ELFDATA2LSB = 1;
677pub const ELFDATA2MSB = 2;673pub const ELFDATA2MSB = 2;
678pub const ELFDATANUM = 3;674pub const ELFDATANUM = 3;
679675
676pub const EI_CLASS = 4;
677pub const EI_DATA = 5;
680pub const EI_VERSION = 6;678pub const EI_VERSION = 6;
679pub const EI_OSABI = 7;
680pub const EI_ABIVERSION = 8;
681pub const EI_PAD = 9;
682
683pub const EI_NIDENT = 16;
681684
682pub const Elf32_Half = u16;685pub const Elf32_Half = u16;
683pub const Elf64_Half = u16;686pub const Elf64_Half = u16;