/external/elfutils/src/libasm/ |
H A D | asm_begin.c | 103 ehdr->e_ident[EI_CLASS] = class; 104 ehdr->e_ident[EI_DATA] = ebl_get_elfdata (ebl); 106 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG);
|
/external/google-breakpad/src/common/linux/ |
H A D | elfutils.cc | 58 assert(elf_header->e_ident[EI_CLASS] == ElfClass::kClass); 93 assert(elf_header->e_ident[EI_CLASS] == ElfClass::kClass); 118 return elf_header->e_ident[EI_CLASS];
|
/external/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.h | 61 unsigned char e_ident[llvm::ELF::EI_NIDENT]; ///< ELF file identification. member in struct:elf::ELFHeader 84 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS32; 93 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS64;
|
H A D | ELFHeader.cpp | 100 if (e_ident[EI_DATA] == ELFDATA2MSB) 102 if (e_ident[EI_DATA] == ELFDATA2LSB) 110 // Read e_ident. This provides byte order and address size info. 111 if (data.GetU8(offset, &e_ident, EI_NIDENT) == NULL)
|
H A D | ObjectFileELF.cpp | 427 if (m_header.e_ident[EI_DATA] == ELFDATA2MSB) 429 if (m_header.e_ident[EI_DATA] == ELFDATA2LSB) 1543 s->Printf("e_ident[EI_MAG0 ] = 0x%2.2x\n", header.e_ident[EI_MAG0]); 1544 s->Printf("e_ident[EI_MAG1 ] = 0x%2.2x '%c'\n", 1545 header.e_ident[EI_MAG1], header.e_ident[EI_MAG1]); 1546 s->Printf("e_ident[EI_MAG2 ] = 0x%2.2x '%c'\n", 1547 header.e_ident[EI_MAG2], header.e_ident[EI_MAG [all...] |
/external/elfutils/src/libdwfl/ |
H A D | elf-from-memory.c | 202 switch (ehdr.e32.e_ident[EI_CLASS]) 234 ehdr.e32.e_ident[EI_DATA]) == NULL) 245 ehdr.e64.e_ident[EI_DATA]) == NULL) 281 switch (ehdr.e32.e_ident[EI_CLASS]) 321 ehdr.e32.e_ident[EI_DATA]) == NULL) 348 ehdr.e64.e_ident[EI_DATA]) == NULL)
|
H A D | link_map.c | 627 size_t buffer_available = addrsize (ehdr.e_ident[EI_CLASS]); 643 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) 644 vaddr = (ehdr.e_ident[EI_DATA] == ELFDATA2MSB 647 vaddr = (ehdr.e_ident[EI_DATA] == ELFDATA2MSB 654 *elfclass = ehdr.e_ident[EI_CLASS]; 655 else if (*elfclass != ehdr.e_ident[EI_CLASS]) 659 *elfdata = ehdr.e_ident[EI_DATA]; 660 else if (*elfdata != ehdr.e_ident[EI_DATA])
|
/external/elfutils/src/tests/ |
H A D | update4.c | 83 printf (" %02x", ehdr->e_ident[i]); 94 ehdr->e_ident[0] = 42; 95 ehdr->e_ident[4] = 1; 96 ehdr->e_ident[5] = 1; 97 ehdr->e_ident[6] = 2; 337 printf (" %02x", ehdr->e_ident[i]);
|
H A D | newfile.c | 31 printf (" %02x", ehdr->e_ident[n]); 102 if (ehdr->e_ident[i] != 0) 104 printf ("ehdr->e_ident[%d] != 0\n", i);
|
H A D | saridx.c | 202 ehdr.e_ident[EI_CLASS] == ELFCLASS32 205 ehdr.e_ident[EI_DATA] == ELFDATA2LSB
|
H A D | alldts.c | 97 ehdr->e_ident[0] = 42; 98 ehdr->e_ident[5] = 1; 99 ehdr->e_ident[6] = 2;
|
H A D | asm-tst1.c | 35 .e_ident = { [EI_MAG0] = ELFMAG0,
|
/external/libvpx/libvpx/build/make/ |
H A D | obj_int_extract.c | 235 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member in struct:__anon9377 244 COPY_STRUCT(&elf->e_ident, elf->buf, 0, elf->sz); 245 res = elf->e_ident[EI_MAG0] == ELFMAG0; 246 res &= elf->e_ident[EI_MAG1] == ELFMAG1; 247 res &= elf->e_ident[EI_MAG2] == ELFMAG2; 248 res &= elf->e_ident[EI_MAG3] == ELFMAG3; 249 res &= elf->e_ident[EI_CLASS] == ELFCLASS32 250 || elf->e_ident[EI_CLASS] == ELFCLASS64; 251 res &= elf->e_ident[EI_DATA] == ELFDATA2LSB; 255 elf->le_data = elf->e_ident[EI_DAT [all...] |
/external/elfutils/src/libdwelf/ |
H A D | dwelf_elf_gnu_debuglink.c | 92 Elf_Data *d = gelf_xlatetom (elf, &crcdata, &conv, ehdr->e_ident[EI_DATA]);
|
/external/llvm/tools/yaml2obj/ |
H A D | yaml2elf.cpp | 157 Header.e_ident[EI_MAG0] = 0x7f; 158 Header.e_ident[EI_MAG1] = 'E'; 159 Header.e_ident[EI_MAG2] = 'L'; 160 Header.e_ident[EI_MAG3] = 'F'; 161 Header.e_ident[EI_CLASS] = ELFT::Is64Bits ? ELFCLASS64 : ELFCLASS32; 163 Header.e_ident[EI_DATA] = IsLittleEndian ? ELFDATA2LSB : ELFDATA2MSB; 164 Header.e_ident[EI_VERSION] = EV_CURRENT; 165 Header.e_ident[EI_OSABI] = Doc.Header.OSABI; 166 Header.e_ident[EI_ABIVERSION] = 0;
|
/external/llvm/include/llvm/Support/ |
H A D | ELF.h | 48 // e_ident size and indices. 60 EI_NIDENT = 16 // Number of bytes in e_ident. 64 unsigned char e_ident[EI_NIDENT]; // ELF Identification bytes member in struct:llvm::ELF::Elf32_Ehdr 79 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0; 81 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } 82 unsigned char getDataEncoding() const { return e_ident[EI_DATA]; } 88 unsigned char e_ident[EI_NIDENT]; member in struct:llvm::ELF::Elf64_Ehdr 103 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0; 105 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } 106 unsigned char getDataEncoding() const { return e_ident[EI_DAT [all...] |
/external/elfutils/src/libdw/ |
H A D | dwarf_frame_register.c | 100 unsigned int address_size = (fs->cache->e_ident[EI_CLASS] == ELFCLASS32
|
/external/libunwind/src/coredump/ |
H A D | _UCD_create.c | 114 if (elf_header32.e_ident[EI_CLASS] != ELFCLASS32 115 && elf_header32.e_ident[EI_CLASS] != ELFCLASS64) 121 if (WE_ARE_LITTLE_ENDIAN != (elf_header32.e_ident[EI_DATA] == ELFDATA2LSB)) 127 _64bits = (elf_header32.e_ident[EI_CLASS] == ELFCLASS64);
|
/external/elfutils/src/libelf/ |
H A D | elf32_getphdr.c | 111 if (ehdr->e_ident[EI_DATA] == MY_ELFDATA 137 if (ehdr->e_ident[EI_DATA] == MY_ELFDATA) 196 if (ehdr->e_ident[EI_DATA] != MY_ELFDATA)
|
H A D | elf32_getshdr.c | 101 || ehdr->e_ident[EI_DATA] != MY_ELFDATA 107 if (ehdr->e_ident[EI_DATA] == MY_ELFDATA) 173 if (ehdr->e_ident[EI_DATA] != MY_ELFDATA)
|
H A D | elf32_checksum.c | 76 ident = elf->state.ELFW(elf,LIBELFBITS).ehdr->e_ident;
|
H A D | elf_getdata.c | 309 elf->state.elf32.ehdr->e_ident[EI_VERSION]; 312 elf->state.elf64.ehdr->e_ident[EI_VERSION]; 446 ? elf->state.elf32.ehdr->e_ident[EI_DATA] 447 : elf->state.elf64.ehdr->e_ident[EI_DATA]),
|
H A D | elf_getdata_rawchunk.c | 113 if (elf->state.elf32.ehdr->e_ident[EI_DATA] == MY_ELFDATA)
|
/external/icu/icu4c/source/tools/toolutil/ |
H A D | pkg_genc.c | 714 buffer.header32.e_ident[0]!=ELFMAG0 || 715 buffer.header32.e_ident[1]!=ELFMAG1 || 716 buffer.header32.e_ident[2]!=ELFMAG2 || 717 buffer.header32.e_ident[3]!=ELFMAG3 || 718 buffer.header32.e_ident[EI_CLASS]<ELFCLASS32 || buffer.header32.e_ident[EI_CLASS]>ELFCLASS64 724 *pBits= buffer.header32.e_ident[EI_CLASS]==ELFCLASS32 ? 32 : 64; /* only 32 or 64: see check above */ 737 *pIsBigEndian=(UBool)(buffer.header32.e_ident[EI_DATA]==ELFDATA2MSB); 783 /* e_ident[] */ 900 /* e_ident[] */ [all...] |
/external/valgrind/coregrind/m_ume/ |
H A D | elf.c | 107 if (VG_(memcmp)(&e->e.e_ident[0], ELFMAG, SELFMAG) != 0) { 111 if (e->e.e_ident[EI_CLASS] != VG_ELF_CLASS) { 116 if (e->e.e_ident[EI_DATA] != VG_ELF_DATA2XXX) { 250 return (len > sizeof(*e)) && VG_(memcmp)(&e->e_ident[0], ELFMAG, SELFMAG) == 0;
|