/external/valgrind/coregrind/ |
D | launcher-linux.c | 207 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || in select_platform() 208 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { in select_platform() 213 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || in select_platform() 214 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { in select_platform() 219 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || in select_platform() 220 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { in select_platform() 226 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || in select_platform() 227 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { in select_platform() 232 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || in select_platform() 233 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { in select_platform() [all …]
|
/external/elfutils/src/tests/ |
D | update1.c | 69 printf (" %02x", ehdr->e_ident[i]); in main() 80 ehdr->e_ident[0] = 42; in main() 81 ehdr->e_ident[4] = 1; in main() 82 ehdr->e_ident[5] = 1; in main() 83 ehdr->e_ident[6] = 2; in main() 84 ehdr->e_ident[9] = 2; in main() 107 printf (" %02x", ehdr->e_ident[i]); in main()
|
D | update2.c | 70 printf (" %02x", ehdr->e_ident[i]); in main() 81 ehdr->e_ident[0] = 42; in main() 82 ehdr->e_ident[4] = 1; in main() 83 ehdr->e_ident[5] = 1; in main() 84 ehdr->e_ident[6] = 2; in main() 130 printf (" %02x", ehdr->e_ident[i]); in main()
|
D | update3.c | 79 printf (" %02x", ehdr->e_ident[i]); in main() 90 ehdr->e_ident[0] = 42; in main() 91 ehdr->e_ident[4] = 1; in main() 92 ehdr->e_ident[5] = 1; in main() 93 ehdr->e_ident[6] = 2; in main() 185 printf (" %02x", ehdr->e_ident[i]); in main()
|
D | update4.c | 83 printf (" %02x", ehdr->e_ident[i]); in main() 94 ehdr->e_ident[0] = 42; in main() 95 ehdr->e_ident[4] = 1; in main() 96 ehdr->e_ident[5] = 1; in main() 97 ehdr->e_ident[6] = 2; in main() 337 printf (" %02x", ehdr->e_ident[i]); in main()
|
/external/libunwind/src/ |
D | elfxx.h | 91 uint8_t* e_ident = (uint8_t*) ei->u.mapped.image; in elf_w() local 93 && e_ident[EI_CLASS] == ELF_CLASS && e_ident[EI_VERSION] != EV_NONE in elf_w() 94 && e_ident[EI_VERSION] <= EV_CURRENT); in elf_w() 98 uint8_t e_ident[EI_NIDENT]; in elf_w() local 100 if (SELFMAG != elf_w (memory_read) (ei, map->start, e_ident, SELFMAG, false)) { in elf_w() 103 if (memcmp (e_ident, ELFMAG, SELFMAG) != 0) { in elf_w() 108 ei, map->start + SELFMAG, e_ident + SELFMAG, EI_NIDENT - SELFMAG, false)) { in elf_w() 111 return e_ident[EI_CLASS] == ELF_CLASS && e_ident[EI_VERSION] != EV_NONE in elf_w() 112 && e_ident[EI_VERSION] <= EV_CURRENT; in elf_w()
|
/external/elfutils/src/libelf/ |
D | elf_begin.c | 75 get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset, in get_shnum() argument 90 bool is32 = e_ident[EI_CLASS] == ELFCLASS32; in get_shnum() 93 if (e_ident[EI_DATA] == MY_ELFDATA in get_shnum() 95 || (((size_t) e_ident in get_shnum() 98 ehdr.p = e_ident; in get_shnum() 110 ehdr_mem.e32.e_shnum = ((Elf32_Ehdr *) e_ident)->e_shnum; in get_shnum() 111 ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff; in get_shnum() 114 memcpy (&ehdr_mem, e_ident, sizeof (Elf32_Ehdr)); in get_shnum() 116 if (e_ident[EI_DATA] != MY_ELFDATA) in get_shnum() 126 ehdr_mem.e64.e_shnum = ((Elf64_Ehdr *) e_ident)->e_shnum; in get_shnum() [all …]
|
D | elf32_updatenull.c | 55 if (memcmp (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0) in ELFW() 57 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG); in ELFW() 62 update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS), in ELFW() 66 if (unlikely (ehdr->e_ident[EI_DATA] == ELFDATANONE)) in ELFW() 68 ehdr->e_ident[EI_DATA] = in ELFW() 72 else if (unlikely (ehdr->e_ident[EI_DATA] >= ELFDATANUM)) in ELFW() 79 && ehdr->e_ident[EI_DATA] != ELFDATA2LSB) in ELFW() 81 && ehdr->e_ident[EI_DATA] != ELFDATA2MSB)); in ELFW() 84 update_if_changed (ehdr->e_ident[EI_VERSION], EV_CURRENT, in ELFW()
|
D | elf_getshdrstrndx.c | 112 && elf->state.elf32.ehdr->e_ident[EI_DATA] == MY_ELFDATA 149 if (elf->state.elf32.ehdr->e_ident[EI_DATA] != MY_ELFDATA) 173 && elf->state.elf64.ehdr->e_ident[EI_DATA] == MY_ELFDATA 210 if (elf->state.elf64.ehdr->e_ident[EI_DATA] != MY_ELFDATA)
|
D | elf_getident.c | 61 ? elf->state.elf32.ehdr->e_ident 62 : elf->state.elf64.ehdr->e_ident);
|
/external/elfutils/src/libdw/ |
D | dwarf_next_cfi.c | 40 dwarf_next_cfi (e_ident, data, eh_frame_p, off, next_off, entry) in dwarf_next_cfi() argument 41 const unsigned char e_ident[]; in dwarf_next_cfi() 49 BYTE_ORDER_DUMMY (dw, e_ident); 138 uint_fast8_t address_size = e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8; 216 += encoded_value_size (data, e_ident, encoding, NULL); 220 bytes += encoded_value_size (data, e_ident, encoding, bytes);
|
D | encoded-value.h | 38 encoded_value_size (const Elf_Data *data, const unsigned char e_ident[], in encoded_value_size() argument 54 return e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8; in encoded_value_size() 76 width = width ?: cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8; in __libdw_cfi_read_address_inc() 118 const size_t size = encoded_value_size (&cache->data->d, cache->e_ident, in read_encoded_value() 187 - encoded_value_size (NULL, cache->e_ident, in read_encoded_value()
|
D | cfi.h | 83 const unsigned char *e_ident; /* For EI_DATA and EI_CLASS. */ member 223 #define BYTE_ORDER_DUMMY(var, e_ident) \ argument 225 { ((BYTE_ORDER == LITTLE_ENDIAN && e_ident[EI_DATA] == ELFDATA2MSB) \ 226 || (BYTE_ORDER == BIG_ENDIAN && e_ident[EI_DATA] == ELFDATA2LSB)) }
|
D | dwarf_getcfi_elf.c | 53 cfi->e_ident = (unsigned char *) elf_getident (elf, NULL); in allocate_cfi() 54 if (cfi->e_ident == NULL) in allocate_cfi() 61 if ((BYTE_ORDER == LITTLE_ENDIAN && cfi->e_ident[EI_DATA] == ELFDATA2MSB) in allocate_cfi() 62 || (BYTE_ORDER == BIG_ENDIAN && cfi->e_ident[EI_DATA] == ELFDATA2LSB)) in allocate_cfi() 96 .e_ident = ehdr->e_ident, in parse_eh_frame_hdr()
|
D | fde.c | 131 int result = INTUSE(dwarf_next_cfi) (cache->e_ident, in __libdw_fde_by_offset() 161 const size_t size = 2 * encoded_value_size (&cache->data->d, cache->e_ident, in binary_search_fde() 168 .e_ident = cache->e_ident, in binary_search_fde() 256 int result = INTUSE(dwarf_next_cfi) (cache->e_ident, in __libdw_find_fde()
|
D | cie.c | 94 += encoded_value_size (&cache->data->d, cache->e_ident, in intern_new_cie() 104 data += encoded_value_size (&cache->data->d, cache->e_ident, in intern_new_cie() 125 = cache->e_ident[EI_CLASS] == ELFCLASS32 ? 4 : 8; in intern_new_cie() 170 int result = INTUSE(dwarf_next_cfi) (cache->e_ident, in __libdw_find_cie()
|
/external/google-breakpad/src/common/linux/ |
D | elf_core_dump.cc | 111 header->e_ident[0] == ELFMAG0 && in IsValid() 112 header->e_ident[1] == ELFMAG1 && in IsValid() 113 header->e_ident[2] == ELFMAG2 && in IsValid() 114 header->e_ident[3] == ELFMAG3 && in IsValid() 115 header->e_ident[4] == kClass && in IsValid()
|
D | elf_core_dump_unittest.cc | 87 header.e_ident[0] = ELFMAG0; in TEST() 93 header.e_ident[1] = ELFMAG1; in TEST() 99 header.e_ident[2] = ELFMAG2; in TEST() 105 header.e_ident[3] = ELFMAG3; in TEST() 111 header.e_ident[4] = ElfCoreDump::kClass; in TEST()
|
/external/linux-tools-perf/src/tools/perf/util/ |
D | symbol-minimal.c | 86 u8 e_ident[EI_NIDENT]; in filename__read_build_id() local 95 if (fread(e_ident, sizeof(e_ident), 1, fp) != 1) in filename__read_build_id() 98 if (memcmp(e_ident, ELFMAG, SELFMAG) || in filename__read_build_id() 99 e_ident[EI_VERSION] != EV_CURRENT) in filename__read_build_id() 102 need_swap = check_need_swap(e_ident[EI_DATA]); in filename__read_build_id() 107 if (e_ident[EI_CLASS] == ELFCLASS32) { in filename__read_build_id()
|
/external/google-breakpad/src/common/solaris/ |
D | file_id.cc | 89 if (elf_header.e_ident[EI_MAG0] != ELFMAG0 || in FindElfTextSection() 90 elf_header.e_ident[EI_MAG1] != ELFMAG1 || in FindElfTextSection() 91 elf_header.e_ident[EI_MAG2] != ELFMAG2 || in FindElfTextSection() 92 elf_header.e_ident[EI_MAG3] != ELFMAG3) { in FindElfTextSection()
|
/external/libvpx/libvpx/build/make/ |
D | obj_int_extract.c | 235 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member 244 COPY_STRUCT(&elf->e_ident, elf->buf, 0, elf->sz); in parse_elf_header() 245 res = elf->e_ident[EI_MAG0] == ELFMAG0; in parse_elf_header() 246 res &= elf->e_ident[EI_MAG1] == ELFMAG1; in parse_elf_header() 247 res &= elf->e_ident[EI_MAG2] == ELFMAG2; in parse_elf_header() 248 res &= elf->e_ident[EI_MAG3] == ELFMAG3; in parse_elf_header() 249 res &= elf->e_ident[EI_CLASS] == ELFCLASS32 in parse_elf_header() 250 || elf->e_ident[EI_CLASS] == ELFCLASS64; in parse_elf_header() 251 res &= elf->e_ident[EI_DATA] == ELFDATA2LSB; in parse_elf_header() 255 elf->le_data = elf->e_ident[EI_DATA] == ELFDATA2LSB; in parse_elf_header() [all …]
|
/external/elfutils/src/libdwfl/ |
D | elf-from-memory.c | 202 switch (ehdr.e32.e_ident[EI_CLASS]) in elf_from_remote_memory() 234 ehdr.e32.e_ident[EI_DATA]) == NULL) in elf_from_remote_memory() 245 ehdr.e64.e_ident[EI_DATA]) == NULL) in elf_from_remote_memory() 281 switch (ehdr.e32.e_ident[EI_CLASS]) in elf_from_remote_memory() 321 ehdr.e32.e_ident[EI_DATA]) == NULL) in elf_from_remote_memory() 348 ehdr.e64.e_ident[EI_DATA]) == NULL) in elf_from_remote_memory()
|
/external/llvm/tools/yaml2obj/ |
D | yaml2elf.cpp | 157 Header.e_ident[EI_MAG0] = 0x7f; in initELFHeader() 158 Header.e_ident[EI_MAG1] = 'E'; in initELFHeader() 159 Header.e_ident[EI_MAG2] = 'L'; in initELFHeader() 160 Header.e_ident[EI_MAG3] = 'F'; in initELFHeader() 161 Header.e_ident[EI_CLASS] = ELFT::Is64Bits ? ELFCLASS64 : ELFCLASS32; in initELFHeader() 163 Header.e_ident[EI_DATA] = IsLittleEndian ? ELFDATA2LSB : ELFDATA2MSB; in initELFHeader() 164 Header.e_ident[EI_VERSION] = EV_CURRENT; in initELFHeader() 165 Header.e_ident[EI_OSABI] = Doc.Header.OSABI; in initELFHeader() 166 Header.e_ident[EI_ABIVERSION] = 0; in initELFHeader()
|
/external/elfutils/src/libasm/ |
D | asm_begin.c | 103 ehdr->e_ident[EI_CLASS] = class; in prepare_binary_output() 104 ehdr->e_ident[EI_DATA] = ebl_get_elfdata (ebl); in prepare_binary_output() 106 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG); in prepare_binary_output()
|
/external/llvm/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()
|