Home
last modified time | relevance | path

Searched refs:e_ident (Results 1 – 15 of 15) sorted by relevance

/haiku/src/tools/
H A Delf2aout.c179 unsigned char data = e->e_ident[EI_DATA]; in elf2aout32()
184 mid = get_mid(xe16toh(e->e_machine), e->e_ident[EI_DATA], e->e_ident[EI_CLASS]); in elf2aout32()
234 unsigned char data = e->e_ident[EI_DATA]; in elf2aout64()
239 mid = get_mid(xe16toh(e->e_machine), e->e_ident[EI_DATA], e->e_ident[EI_CLASS]); in elf2aout64()
312 if (e->e_ident[EI_CLASS] != ELFCLASS64 && e->e_ident[EI_CLASS] != ELFCLASS32) in main()
314 data = e->e_ident[EI_DATA]; in main()
317 if (e->e_ident[EI_VERSION] != EV_CURRENT) in main()
320 if (e->e_ident[EI_CLASS] == ELFCLASS64) in main()
H A Dset_haiku_revision.cpp63 unsigned char e_ident[EI_NIDENT]; member
80 unsigned char e_ident[EI_NIDENT]; member
542 switch (fileHeader.e_ident[EI_DATA]) { in _ParseELFHeader()
/haiku/headers/os/kernel/
H A Delf.h48 uint8 e_ident[EI_NIDENT]; member
69 uint8 e_ident[EI_NIDENT]; member
108 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \
109 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
110 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
111 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
848 return e_ident[EI_DATA] == ELFDATA2LSB; in IsHostEndian()
850 return e_ident[EI_DATA] == ELFDATA2MSB; in IsHostEndian()
859 return e_ident[EI_DATA] == ELFDATA2LSB; in IsHostEndian()
861 return e_ident[EI_DATA] == ELFDATA2MSB; in IsHostEndian()
/haiku/headers/build/os/kernel/
H A Delf.h37 uint8 e_ident[EI_NIDENT]; member
58 uint8 e_ident[EI_NIDENT]; member
97 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \
98 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
99 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
100 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
835 return e_ident[EI_DATA] == ELFDATA2LSB; in IsHostEndian()
837 return e_ident[EI_DATA] == ELFDATA2MSB; in IsHostEndian()
846 return e_ident[EI_DATA] == ELFDATA2LSB; in IsHostEndian()
848 return e_ident[EI_DATA] == ELFDATA2MSB; in IsHostEndian()
/haiku/src/tools/elfsymbolpatcher/
H A DElfFile.cpp619 if (fHeader.e_ident[EI_MAG0] != ELFMAG0 in _SetTo()
620 || fHeader.e_ident[EI_MAG1] != ELFMAG1 in _SetTo()
621 || fHeader.e_ident[EI_MAG2] != ELFMAG2 in _SetTo()
622 || fHeader.e_ident[EI_MAG3] != ELFMAG3) { in _SetTo()
627 if (fHeader.e_ident[EI_CLASS] != ELFCLASS) { in _SetTo()
632 if (fHeader.e_ident[EI_DATA] != ELFDATA2LSB) { in _SetTo()
637 if (fHeader.e_ident[EI_VERSION] != EV_CURRENT) { in _SetTo()
/haiku/src/system/runtime_loader/
H A Delf_load_image.cpp432 if (memcmp(eheader->e_ident, ELFMAG, 4) != 0) in parse_elf_header()
435 if (eheader->e_ident[4] != ELF_CLASS) in parse_elf_header()
460 if (memcmp(eheader->e_ident, ELFMAG, 4) != 0) in parse_elf32_header()
463 if (eheader->e_ident[4] != ELFCLASS32) in parse_elf32_header()
485 if (memcmp(eheader->e_ident, ELFMAG, 4) != 0) in parse_elf64_header()
488 if (eheader->e_ident[4] != ELFCLASS64) in parse_elf64_header()
H A Druntime_loader.cpp650 if (memcmp(elfHeader.e_ident, ELFMAG, 4) != 0) in get_executable_architecture()
655 if ((elfHeader.e_ident[EI_DATA] == ELFDATA2LSB) != (B_HOST_IS_LENDIAN != 0)) in get_executable_architecture()
/haiku/src/tools/restest/
H A DElf.h26 unsigned char e_ident[EI_NIDENT]; member
H A DResourceFile.cpp634 switch (fileHeader.e_ident[EI_DATA]) { in _InitELFFile()
/haiku/src/system/kernel/debug/
H A Dcore_dump.cpp1102 header.e_ident[EI_MAG0] = ELFMAG[0]; in _WriteElfHeader()
1103 header.e_ident[EI_MAG1] = ELFMAG[1]; in _WriteElfHeader()
1104 header.e_ident[EI_MAG2] = ELFMAG[2]; in _WriteElfHeader()
1105 header.e_ident[EI_MAG3] = ELFMAG[3]; in _WriteElfHeader()
1107 header.e_ident[EI_CLASS] = ELFCLASS64; in _WriteElfHeader()
1109 header.e_ident[EI_CLASS] = ELFCLASS32; in _WriteElfHeader()
1112 header.e_ident[EI_DATA] = ELFDATA2LSB; in _WriteElfHeader()
1114 header.e_ident[EI_DATA] = ELFDATA2MSB; in _WriteElfHeader()
1116 header.e_ident[EI_VERSION] = EV_CURRENT; in _WriteElfHeader()
/haiku/headers/private/storage/
H A DElfX.h21 unsigned char e_ident[EI_NIDENT]; member
/haiku/src/kits/debug/
H A DImage.cpp280 if (memcmp(elfHeader->e_ident, ELFMAG, 4) != 0) in _LoadFile()
283 if (elfHeader->e_ident[4] != ELF_CLASS) in _LoadFile()
/haiku/src/system/boot/loader/
H A Delf.cpp191 if (memcmp(elfHeader.e_ident, ELFMAG, 4) != 0 in Create()
192 || elfHeader.e_ident[4] != Class::kIdentClass in Create()
200 image->elf_class = elfHeader.e_ident[EI_CLASS]; in Create()
/haiku/src/system/kernel/
H A Delf.cpp1127 if (memcmp(elfHeader->e_ident, ELFMAG, 4) != 0) in verify_eheader()
1130 if (elfHeader->e_ident[4] != ELF_CLASS) in verify_eheader()
/haiku/src/kits/storage/
H A DResourceFile.cpp650 if (fileHeader.e_ident[EI_CLASS] == ELFCLASS64) { in _InitELFXFile()