/external/elfutils/tests/ |
D | update1.c | 76 printf (" %02x", ehdr->e_ident[i]); in main() 87 ehdr->e_ident[0] = 42; in main() 88 ehdr->e_ident[4] = 1; in main() 89 ehdr->e_ident[5] = 1; in main() 90 ehdr->e_ident[6] = 2; in main() 91 ehdr->e_ident[9] = 2; in main() 114 printf (" %02x", ehdr->e_ident[i]); in main()
|
D | update2.c | 77 printf (" %02x", ehdr->e_ident[i]); in main() 88 ehdr->e_ident[0] = 42; in main() 89 ehdr->e_ident[4] = 1; in main() 90 ehdr->e_ident[5] = 1; in main() 91 ehdr->e_ident[6] = 2; in main() 137 printf (" %02x", ehdr->e_ident[i]); in main()
|
D | update3.c | 86 printf (" %02x", ehdr->e_ident[i]); in main() 97 ehdr->e_ident[0] = 42; in main() 98 ehdr->e_ident[4] = 1; in main() 99 ehdr->e_ident[5] = 1; in main() 100 ehdr->e_ident[6] = 2; in main() 192 printf (" %02x", ehdr->e_ident[i]); in main()
|
D | update4.c | 91 printf (" %02x", ehdr->e_ident[i]); in main() 102 ehdr->e_ident[0] = 42; in main() 103 ehdr->e_ident[4] = 1; in main() 104 ehdr->e_ident[5] = 1; in main() 105 ehdr->e_ident[6] = 2; in main() 345 printf (" %02x", ehdr->e_ident[i]); in main()
|
D | newfile.c | 39 printf (" %02x", ehdr->e_ident[n]); in print_ehdr() 110 if (ehdr->e_ident[i] != 0) in main()
|
/external/valgrind/main/coregrind/ |
D | launcher-linux.c | 176 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || in select_platform() 177 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { in select_platform() 182 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || in select_platform() 183 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { in select_platform() 189 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || in select_platform() 190 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { in select_platform() 200 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || in select_platform() 201 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { in select_platform() 207 (ehdr->e_ident[EI_OSABI] == ELFOSABI_SYSV || in select_platform() 208 ehdr->e_ident[EI_OSABI] == ELFOSABI_LINUX)) { in select_platform() [all …]
|
/external/grub/stage2/ |
D | i386-elf.h | 65 unsigned char e_ident[EI_NIDENT]; /* basic identification block */ member 96 ((h.e_ident[EI_MAG0] == ELFMAG0) & (h.e_ident[EI_MAG1] == ELFMAG1) \ 97 & (h.e_ident[EI_MAG2] == ELFMAG2) & (h.e_ident[EI_MAG3] == ELFMAG3) \ 98 & (h.e_ident[EI_CLASS] == ELFCLASS32) & (h.e_ident[EI_DATA] == ELFDATA2LSB) \ 99 & (h.e_ident[EI_VERSION] == EV_CURRENT) & (h.e_type == ET_EXEC) \
|
/external/elfutils/libelf/ |
D | elf_begin.c | 95 get_shnum (void *map_address, unsigned char *e_ident, int fildes, off_t offset, in get_shnum() argument 110 bool is32 = e_ident[EI_CLASS] == ELFCLASS32; in get_shnum() 113 if (e_ident[EI_DATA] == MY_ELFDATA in get_shnum() 115 || (((size_t) e_ident in get_shnum() 118 ehdr.p = e_ident; in get_shnum() 130 ehdr_mem.e32.e_shnum = ((Elf32_Ehdr *) e_ident)->e_shnum; in get_shnum() 131 ehdr_mem.e32.e_shoff = ((Elf32_Ehdr *) e_ident)->e_shoff; in get_shnum() 134 memcpy (&ehdr_mem, e_ident, sizeof (Elf32_Ehdr)); in get_shnum() 136 if (e_ident[EI_DATA] != MY_ELFDATA) in get_shnum() 146 ehdr_mem.e64.e_shnum = ((Elf64_Ehdr *) e_ident)->e_shnum; in get_shnum() [all …]
|
D | elf32_updatenull.c | 76 if (memcmp (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0) in ELFW() 78 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG); in ELFW() 83 update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS), in ELFW() 87 if (unlikely (ehdr->e_ident[EI_DATA] == ELFDATANONE)) in ELFW() 89 ehdr->e_ident[EI_DATA] = in ELFW() 93 else if (unlikely (ehdr->e_ident[EI_DATA] >= ELFDATANUM)) in ELFW() 100 && ehdr->e_ident[EI_DATA] != ELFDATA2LSB) in ELFW() 102 && ehdr->e_ident[EI_DATA] != ELFDATA2MSB)); in ELFW() 105 update_if_changed (ehdr->e_ident[EI_VERSION], EV_CURRENT, in ELFW()
|
D | elf_getshstrndx.c | 126 && elf->state.elf32.ehdr->e_ident[EI_DATA] == MY_ELFDATA 148 if (elf->state.elf32.ehdr->e_ident[EI_DATA] != MY_ELFDATA) 164 && elf->state.elf64.ehdr->e_ident[EI_DATA] == MY_ELFDATA 186 if (elf->state.elf64.ehdr->e_ident[EI_DATA] != MY_ELFDATA)
|
D | elf_getident.c | 82 ? elf->state.elf32.ehdr->e_ident 83 : elf->state.elf64.ehdr->e_ident);
|
D | gelf_update_ehdr.c | 99 memcpy (ehdr->e_ident, src->e_ident, EI_NIDENT); in gelf_update_ehdr()
|
D | gelf_getehdr.c | 93 memcpy (dest->e_ident, ehdr->e_ident, EI_NIDENT);
|
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)
|
D | elf_getdata.c | 328 elf->state.elf32.ehdr->e_ident[EI_VERSION]; in __libelf_set_rawdata_wrlock() 331 elf->state.elf64.ehdr->e_ident[EI_VERSION]; in __libelf_set_rawdata_wrlock() 465 ? elf->state.elf32.ehdr->e_ident[EI_DATA] 466 : elf->state.elf64.ehdr->e_ident[EI_DATA]),
|
/external/qemu/ |
D | loader.c | 311 uint8_t e_ident[EI_NIDENT]; in load_elf() local 318 if (read(fd, e_ident, sizeof(e_ident)) != sizeof(e_ident)) in load_elf() 320 if (e_ident[0] != ELFMAG0 || in load_elf() 321 e_ident[1] != ELFMAG1 || in load_elf() 322 e_ident[2] != ELFMAG2 || in load_elf() 323 e_ident[3] != ELFMAG3) in load_elf() 330 must_swab = data_order != e_ident[EI_DATA]; in load_elf() 337 if (host_data_order != e_ident[EI_DATA]) in load_elf() 341 if (e_ident[EI_CLASS] == ELFCLASS64) { in load_elf()
|
/external/elfutils/libdwfl/ |
D | dwfl_segment_report_module.c | 294 if (ehdr.e32.e_ident[EI_DATA] == MY_ELFDATA) in dwfl_segment_report_module() 307 ehdr.e32.e_ident[EI_DATA]) == NULL) in dwfl_segment_report_module() 408 if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32) in dwfl_segment_report_module() 411 ehdr.e32.e_ident[EI_DATA]) == NULL) in dwfl_segment_report_module() 423 ehdr.e32.e_ident[EI_DATA]) == NULL) in dwfl_segment_report_module() 483 const size_t dyn_entsize = (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32 in dwfl_segment_report_module() 502 if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32) in dwfl_segment_report_module() 505 ehdr.e32.e_ident[EI_DATA]) != NULL) in dwfl_segment_report_module() 513 ehdr.e32.e_ident[EI_DATA]) != NULL) in dwfl_segment_report_module() 610 if (ehdr.e32.e_ident[EI_CLASS] == ELFCLASS32) in dwfl_segment_report_module()
|
D | elf-from-memory.c | 217 switch (ehdr.e32.e_ident[EI_CLASS]) in elf_from_remote_memory() 238 ehdr.e32.e_ident[EI_DATA]) == NULL) in elf_from_remote_memory() 248 ehdr.e32.e_ident[EI_DATA]) == NULL) in elf_from_remote_memory() 281 switch (ehdr.e32.e_ident[EI_CLASS]) in elf_from_remote_memory() 319 ehdr.e32.e_ident[EI_DATA]) == NULL) in elf_from_remote_memory() 346 ehdr.e64.e_ident[EI_DATA]) == NULL) in elf_from_remote_memory()
|
D | link_map.c | 562 size_t buffer_available = addrsize (ehdr.e_ident[EI_CLASS]); in consider_executable() 580 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) in consider_executable() 581 vaddr = (ehdr.e_ident[EI_DATA] == ELFDATA2MSB in consider_executable() 584 vaddr = (ehdr.e_ident[EI_DATA] == ELFDATA2MSB in consider_executable() 592 *elfclass = ehdr.e_ident[EI_CLASS]; in consider_executable() 593 else if (*elfclass != ehdr.e_ident[EI_CLASS]) in consider_executable() 597 *elfdata = ehdr.e_ident[EI_DATA]; in consider_executable() 598 else if (*elfdata != ehdr.e_ident[EI_DATA]) in consider_executable()
|
/external/libvpx/build/make/ |
D | obj_int_extract.c | 317 unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */ member 327 COPY_STRUCT(&elf->e_ident, elf->buf, 0, elf->sz); in parse_elf_header() 328 res = elf->e_ident[EI_MAG0] == ELFMAG0; in parse_elf_header() 329 res &= elf->e_ident[EI_MAG1] == ELFMAG1; in parse_elf_header() 330 res &= elf->e_ident[EI_MAG2] == ELFMAG2; in parse_elf_header() 331 res &= elf->e_ident[EI_MAG3] == ELFMAG3; in parse_elf_header() 332 res &= elf->e_ident[EI_CLASS] == ELFCLASS32 in parse_elf_header() 333 || elf->e_ident[EI_CLASS] == ELFCLASS64; in parse_elf_header() 334 res &= elf->e_ident[EI_DATA] == ELFDATA2LSB; in parse_elf_header() 338 elf->le_data = elf->e_ident[EI_DATA] == ELFDATA2LSB; in parse_elf_header() [all …]
|
/external/elfutils/libasm/ |
D | asm_begin.c | 100 ehdr->e_ident[EI_CLASS] = class; in prepare_binary_output() 101 ehdr->e_ident[EI_DATA] = ebl_get_elfdata (ebl); in prepare_binary_output() 103 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG); in prepare_binary_output()
|
/external/icu4c/tools/toolutil/ |
D | pkg_genc.c | 687 buffer.header32.e_ident[0]!=ELFMAG0 || in getArchitecture() 688 buffer.header32.e_ident[1]!=ELFMAG1 || in getArchitecture() 689 buffer.header32.e_ident[2]!=ELFMAG2 || in getArchitecture() 690 buffer.header32.e_ident[3]!=ELFMAG3 || in getArchitecture() 691 buffer.header32.e_ident[EI_CLASS]<ELFCLASS32 || buffer.header32.e_ident[EI_CLASS]>ELFCLASS64 in getArchitecture() 697 …*pBits= buffer.header32.e_ident[EI_CLASS]==ELFCLASS32 ? 32 : 64; /* only 32 or 64: see check above… in getArchitecture() 710 *pIsBigEndian=(UBool)(buffer.header32.e_ident[EI_DATA]==ELFDATA2MSB); in getArchitecture() 1044 header32.e_ident[EI_DATA]= makeBigEndian ? ELFDATA2MSB : ELFDATA2LSB; in writeObjectCode() 1064 header64.e_ident[EI_DATA]= makeBigEndian ? ELFDATA2MSB : ELFDATA2LSB; in writeObjectCode()
|
/external/llvm/include/llvm/Support/ |
D | ELF.h | 63 unsigned char e_ident[EI_NIDENT]; // ELF Identification bytes member 78 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 102 return (memcmp(e_ident, ElfMagic, strlen(ElfMagic))) == 0; in checkMagic() 104 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } in getFileClass() 105 unsigned char getDataEncoding() const { return e_ident[EI_DATA]; } in getDataEncoding()
|
/external/kernel-headers/original/asm-mips/ |
D | elf.h | 188 if (__h->e_ident[EI_CLASS] != ELFCLASS32) \ 217 if (__h->e_ident[EI_CLASS] != ELFCLASS64) \ 304 if ((ex).e_ident[EI_CLASS] == ELFCLASS32) \
|
/external/valgrind/main/coregrind/m_ume/ |
D | elf.c | 109 if (VG_(memcmp)(&e->e.e_ident[0], ELFMAG, SELFMAG) != 0) { in readelf() 113 if (e->e.e_ident[EI_CLASS] != VG_ELF_CLASS) { in readelf() 118 if (e->e.e_ident[EI_DATA] != VG_ELF_DATA2XXX) { in readelf() 253 return (len > sizeof(*e)) && VG_(memcmp)(&e->e_ident[0], ELFMAG, SELFMAG) == 0; in VG_()
|