/third_party/elfio/elfio/ |
D | elfio_header.hpp | 84 header.e_ident[EI_MAG0] = ELFMAG0; in elf_header_impl() 85 header.e_ident[EI_MAG1] = ELFMAG1; in elf_header_impl() 86 header.e_ident[EI_MAG2] = ELFMAG2; in elf_header_impl() 87 header.e_ident[EI_MAG3] = ELFMAG3; in elf_header_impl() 88 header.e_ident[EI_CLASS] = elf_header_impl_types<T>::file_class; in elf_header_impl() 89 header.e_ident[EI_DATA] = encoding; in elf_header_impl() 90 header.e_ident[EI_VERSION] = EV_CURRENT; in elf_header_impl() 124 ELFIO_GET_ACCESS( unsigned char, class, header.e_ident[EI_CLASS] ); 125 ELFIO_GET_ACCESS( unsigned char, elf_version, header.e_ident[EI_VERSION] ); 126 ELFIO_GET_ACCESS( unsigned char, encoding, header.e_ident[EI_DATA] ); [all …]
|
D | elfio.hpp | 108 unsigned char e_ident[EI_NIDENT]; in load() local 110 stream.read( reinterpret_cast<char*>( &e_ident ), sizeof( e_ident ) ); in load() 113 if ( stream.gcount() != sizeof( e_ident ) || in load() 114 e_ident[EI_MAG0] != ELFMAG0 || e_ident[EI_MAG1] != ELFMAG1 || in load() 115 e_ident[EI_MAG2] != ELFMAG2 || e_ident[EI_MAG3] != ELFMAG3 ) { in load() 119 if ( ( e_ident[EI_CLASS] != ELFCLASS64 ) && in load() 120 ( e_ident[EI_CLASS] != ELFCLASS32 ) ) { in load() 124 convertor.setup( e_ident[EI_DATA] ); in load() 125 header = create_header( e_ident[EI_CLASS], e_ident[EI_DATA] ); in load()
|
D | elf_types.hpp | 715 unsigned char e_ident[EI_NIDENT]; member 733 unsigned char e_ident[EI_NIDENT]; member
|
/third_party/libunwind/src/ |
D | dl-iterate-phdr.c | 36 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ 37 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \ 38 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \ 39 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
|
/third_party/flutter/skia/third_party/externals/icu/source/tools/toolutil/ |
D | pkg_genc.cpp | 728 buffer.header32.e_ident[0]!=ELFMAG0 || in getArchitecture() 729 buffer.header32.e_ident[1]!=ELFMAG1 || in getArchitecture() 730 buffer.header32.e_ident[2]!=ELFMAG2 || in getArchitecture() 731 buffer.header32.e_ident[3]!=ELFMAG3 || in getArchitecture() 732 buffer.header32.e_ident[EI_CLASS]<ELFCLASS32 || buffer.header32.e_ident[EI_CLASS]>ELFCLASS64 in getArchitecture() 738 …*pBits= buffer.header32.e_ident[EI_CLASS]==ELFCLASS32 ? 32 : 64; /* only 32 or 64: see check above… in getArchitecture() 751 *pIsBigEndian=(UBool)(buffer.header32.e_ident[EI_DATA]==ELFDATA2MSB); in getArchitecture() 1092 header32.e_ident[EI_DATA]= makeBigEndian ? ELFDATA2MSB : ELFDATA2LSB; in writeObjectCode() 1112 header64.e_ident[EI_DATA]= makeBigEndian ? ELFDATA2MSB : ELFDATA2LSB; in writeObjectCode()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | ELF.h | 64 unsigned char e_ident[EI_NIDENT]; // ELF Identification bytes member 79 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0; in checkMagic() 81 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } in getFileClass() 82 unsigned char getDataEncoding() const { return e_ident[EI_DATA]; } in getDataEncoding() 88 unsigned char e_ident[EI_NIDENT]; member 103 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0; in checkMagic() 105 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } in getFileClass() 106 unsigned char getDataEncoding() const { return e_ident[EI_DATA]; } in getDataEncoding()
|
/third_party/icu/icu4c/source/tools/toolutil/ |
D | pkg_genc.cpp | 823 buffer.header32.e_ident[0]!=ELFMAG0 || in getArchitecture() 824 buffer.header32.e_ident[1]!=ELFMAG1 || in getArchitecture() 825 buffer.header32.e_ident[2]!=ELFMAG2 || in getArchitecture() 826 buffer.header32.e_ident[3]!=ELFMAG3 || in getArchitecture() 827 buffer.header32.e_ident[EI_CLASS]<ELFCLASS32 || buffer.header32.e_ident[EI_CLASS]>ELFCLASS64 in getArchitecture() 833 …*pBits= buffer.header32.e_ident[EI_CLASS]==ELFCLASS32 ? 32 : 64; /* only 32 or 64: see check above… in getArchitecture() 846 *pIsBigEndian=(UBool)(buffer.header32.e_ident[EI_DATA]==ELFDATA2MSB); in getArchitecture() 1210 header32.e_ident[EI_DATA]= makeBigEndian ? ELFDATA2MSB : ELFDATA2LSB; in writeObjectCode() 1230 header64.e_ident[EI_DATA]= makeBigEndian ? ELFDATA2MSB : ELFDATA2LSB; in writeObjectCode()
|
/third_party/node/deps/icu-small/source/tools/toolutil/ |
D | pkg_genc.cpp | 823 buffer.header32.e_ident[0]!=ELFMAG0 || in getArchitecture() 824 buffer.header32.e_ident[1]!=ELFMAG1 || in getArchitecture() 825 buffer.header32.e_ident[2]!=ELFMAG2 || in getArchitecture() 826 buffer.header32.e_ident[3]!=ELFMAG3 || in getArchitecture() 827 buffer.header32.e_ident[EI_CLASS]<ELFCLASS32 || buffer.header32.e_ident[EI_CLASS]>ELFCLASS64 in getArchitecture() 833 …*pBits= buffer.header32.e_ident[EI_CLASS]==ELFCLASS32 ? 32 : 64; /* only 32 or 64: see check above… in getArchitecture() 846 *pIsBigEndian=(UBool)(buffer.header32.e_ident[EI_DATA]==ELFDATA2MSB); in getArchitecture() 1210 header32.e_ident[EI_DATA]= makeBigEndian ? ELFDATA2MSB : ELFDATA2LSB; in writeObjectCode() 1230 header64.e_ident[EI_DATA]= makeBigEndian ? ELFDATA2MSB : ELFDATA2LSB; in writeObjectCode()
|
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
D | pkg_genc.cpp | 823 buffer.header32.e_ident[0]!=ELFMAG0 || in getArchitecture() 824 buffer.header32.e_ident[1]!=ELFMAG1 || in getArchitecture() 825 buffer.header32.e_ident[2]!=ELFMAG2 || in getArchitecture() 826 buffer.header32.e_ident[3]!=ELFMAG3 || in getArchitecture() 827 buffer.header32.e_ident[EI_CLASS]<ELFCLASS32 || buffer.header32.e_ident[EI_CLASS]>ELFCLASS64 in getArchitecture() 833 …*pBits= buffer.header32.e_ident[EI_CLASS]==ELFCLASS32 ? 32 : 64; /* only 32 or 64: see check above… in getArchitecture() 846 *pIsBigEndian=(UBool)(buffer.header32.e_ident[EI_DATA]==ELFDATA2MSB); in getArchitecture() 1210 header32.e_ident[EI_DATA]= makeBigEndian ? ELFDATA2MSB : ELFDATA2LSB; in writeObjectCode() 1230 header64.e_ident[EI_DATA]= makeBigEndian ? ELFDATA2MSB : ELFDATA2LSB; in writeObjectCode()
|
/third_party/libunwind/src/coredump/ |
D | _UCD_create.c | 84 if (elf_header32.e_ident[EI_CLASS] != ELFCLASS32 in _UCD_create() 85 && elf_header32.e_ident[EI_CLASS] != ELFCLASS64) in _UCD_create() 91 if (target_is_big_endian() && (elf_header32.e_ident[EI_DATA] == ELFDATA2LSB)) in _UCD_create() 97 _64bits = (elf_header32.e_ident[EI_CLASS] == ELFCLASS64); in _UCD_create()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/BinaryFormat/ |
D | ELF.h | 61 unsigned char e_ident[EI_NIDENT]; // ELF Identification bytes member 77 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0; in checkMagic() 80 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } in getFileClass() 81 unsigned char getDataEncoding() const { return e_ident[EI_DATA]; } in getDataEncoding() 87 unsigned char e_ident[EI_NIDENT]; member 103 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0; in checkMagic() 106 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } in getFileClass() 107 unsigned char getDataEncoding() const { return e_ident[EI_DATA]; } in getDataEncoding()
|
/third_party/libunwind/include/mingw/ |
D | freebsd-elf_common.h | 111 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ 112 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \ 113 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \ 114 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
|
D | freebsd-elf32.h | 56 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member
|
D | freebsd-elf64.h | 69 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member
|
/third_party/libunwind/include/win/ |
D | freebsd-elf_common.h | 111 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ 112 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \ 113 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \ 114 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
|
D | freebsd-elf32.h | 56 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member
|
D | freebsd-elf64.h | 69 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member
|
/third_party/ltp/libs/libltpvdso/ |
D | parse_vdso.c | 103 if (hdr->e_ident[EI_CLASS] != in vdso_init_from_sysinfo_ehdr() 111 && hdr->e_ident[EI_CLASS] == ELFCLASS64) in vdso_init_from_sysinfo_ehdr()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ |
D | ELFTypes.h | 457 unsigned char e_ident[ELF::EI_NIDENT]; // ELF Identification bytes 474 return (memcmp(e_ident, ELF::ElfMagic, strlen(ELF::ElfMagic))) == 0; 477 unsigned char getFileClass() const { return e_ident[ELF::EI_CLASS]; } 478 unsigned char getDataEncoding() const { return e_ident[ELF::EI_DATA]; }
|
D | ELFObjectFile.h | 1058 switch (EF.getHeader()->e_ident[ELF::EI_CLASS]) { in getFileFormatName() 1141 switch (EF.getHeader()->e_ident[ELF::EI_CLASS]) { in getArch() 1156 switch (EF.getHeader()->e_ident[ELF::EI_CLASS]) { in getArch()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
D | ELFEmitter.cpp | 277 Header.e_ident[EI_MAG0] = 0x7f; in writeELFHeader() 278 Header.e_ident[EI_MAG1] = 'E'; in writeELFHeader() 279 Header.e_ident[EI_MAG2] = 'L'; in writeELFHeader() 280 Header.e_ident[EI_MAG3] = 'F'; in writeELFHeader() 281 Header.e_ident[EI_CLASS] = ELFT::Is64Bits ? ELFCLASS64 : ELFCLASS32; in writeELFHeader() 282 Header.e_ident[EI_DATA] = Doc.Header.Data; in writeELFHeader() 283 Header.e_ident[EI_VERSION] = EV_CURRENT; in writeELFHeader() 284 Header.e_ident[EI_OSABI] = Doc.Header.OSABI; in writeELFHeader() 285 Header.e_ident[EI_ABIVERSION] = Doc.Header.ABIVersion; in writeELFHeader()
|
/third_party/boost/boost/dll/detail/ |
D | elf_info.hpp | 28 unsigned char e_ident[16]; /* Magic number and other info */ member
|
/third_party/boost/libs/dll/test/ |
D | structures_tests.cpp | 54 CHECK_FIELD(e_ident); in elf_header_checks()
|
/third_party/mesa3d/src/amd/common/ |
D | ac_rgp_elf_object_pack.c | 393 memcpy(&elf_hdr.e_ident, &elf_ident, EI_NIDENT); in ac_rgp_file_write_elf_object()
|
/third_party/skia/third_party/externals/angle2/util/posix/ |
D | crash_handler_posix.cpp | 320 memcmp(ehdr.e_ident, ELFMAG, SELFMAG) == 0)
|