/external/elfutils/libelf/ |
elf32_updatefile.c | 134 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 141 assert (sizeof (ElfW2(LIBELFBITS,Ehdr)) 156 (*fctp) ((char *) elf->map_address + elf->start_offset, ehdr, 157 sizeof (ElfW2(LIBELFBITS,Ehdr)), 1); 159 else if (elf->map_address + elf->start_offset != ehdr) 160 memcpy (elf->map_address + elf->start_offset, ehdr, 161 sizeof (ElfW2(LIBELFBITS,Ehdr))); 186 if (ehdr->e_phoff > ehdr->e_ehsize [all...] |
abstract.h | 31 #define Ehdr(Bits, Ext) \ 32 START (Bits, Ehdr, Ext##Ehdr) \ 48 END (Bits, Ext##Ehdr) 51 Ehdr(32, Ext) 53 Ehdr(64, Ext)
|
elf32_updatenull.c | 51 ELFW(default_ehdr,LIBELFBITS) (Elf *elf, ElfW2(LIBELFBITS,Ehdr) *ehdr, 55 if (memcmp (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0) 57 memcpy (&ehdr->e_ident[EI_MAG0], ELFMAG, SELFMAG); 62 update_if_changed (ehdr->e_ident[EI_CLASS], ELFW(ELFCLASS,LIBELFBITS), 66 if (unlikely (ehdr->e_ident[EI_DATA] == ELFDATANONE)) 68 ehdr->e_ident[EI_DATA] = 72 else if (unlikely (ehdr->e_ident[EI_DATA] >= ELFDATANUM)) 79 && ehdr->e_ident[EI_DATA] != ELFDATA2LSB) 81 && ehdr->e_ident[EI_DATA] != ELFDATA2MSB)) [all...] |
elf32_getphdr.c | 72 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 78 if (phnum == 0 || ehdr->e_phoff == 0) 88 || ehdr->e_phoff > elf->maximum_size 89 || elf->maximum_size - ehdr->e_phoff < size) 99 if (unlikely (ehdr->e_phoff >= elf->maximum_size) 100 || unlikely (elf->maximum_size - ehdr->e_phoff < size)) 109 + elf->start_offset + ehdr->e_phoff); 110 if (ehdr->e_ident[EI_DATA] == MY_ELFDAT [all...] |
elf32_getshdr.c | 55 ElfW2(LIBELFBITS,Ehdr) *ehdr = elf->state.ELFW(elf,LIBELFBITS).ehdr; 83 if (unlikely (ehdr->e_shoff >= elf->maximum_size) 84 || unlikely (elf->maximum_size - ehdr->e_shoff < size)) 98 + elf->start_offset + ehdr->e_shoff); 101 || ehdr->e_ident[EI_DATA] != MY_ELFDATA 108 if (ehdr->e_ident[EI_DATA] == MY_ELFDATA) 124 + elf->start_offset + ehdr->e_shoff); 134 + elf->start_offset + ehdr->e_shoff) [all...] |
elf_getdata.c | 86 [ELF_T_EHDR] = __alignof__ (ElfW2(Bits,Ehdr)), \ 130 GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem); local 131 return (SH_ENTSIZE_HASH (ehdr) == 4 ? ELF_T_WORD : ELF_T_XWORD); 272 GElf_Ehdr *ehdr = __gelf_getehdr_rdlock (elf, &ehdr_mem); local 273 entsize = SH_ENTSIZE_HASH (ehdr); 363 at least an ehdr this will only trigger for alignment values > 64 370 || (offsetof (struct Elf, state.elf32.ehdr) 371 == offsetof (struct Elf, state.elf64.ehdr))) 373 elf->state.elf32.ehdr->e_ident[EI_VERSION]; 376 elf->state.elf64.ehdr->e_ident[EI_VERSION] [all...] |
/external/valgrind/coregrind/m_ume/ |
elf.c | 77 ESZ(Ehdr) e; 86 @ehdr: The main ELF header 103 @ehdr: The main ELF header 121 static inline Int arch_elf_pt_proc(ESZ(Ehdr) *ehdr, 129 if ( (ehdr->e_ident[EI_CLASS] == ELFCLASS32) && 130 (ehdr->e_flags & VKI_EF_MIPS_FP64) ) { 165 static inline Int arch_check_elf(ESZ(Ehdr) *ehdr, 210 is_mips64 = (ehdr->e_ident[EI_CLASS] == ELFCLASS64) | [all...] |
/toolchain/binutils/binutils-2.27/gold/ |
target.h | 362 off_t offset, const elfcpp::Ehdr<size, big_endian>& ehdr) 363 { return this->do_make_elf_object(name, input_file, offset, ehdr); } 697 const elfcpp::Ehdr<32, false>&); 704 const elfcpp::Ehdr<32, true>&); 711 const elfcpp::Ehdr<64, false>& ehdr); 718 off_t offset, const elfcpp::Ehdr<64, true>& ehdr); 813 const elfcpp::Ehdr<size, big_endian>&) [all...] |
dynobj.h | 177 const typename elfcpp::Ehdr<size, big_endian>&);
|
object.cc | 464 const elfcpp::Ehdr<size, big_endian>& ehdr) 466 elf_file_(this, ehdr), 485 this->e_type_ = ehdr.get_e_type(); [all...] |
/bionic/linker/ |
linker_phdr.h | 77 ElfW(Ehdr) header_;
|
linker_phdr.cpp | [all...] |
/external/linux-kselftest/tools/testing/selftests/vDSO/ |
parse_vdso.c | 106 ELF(Ehdr) *hdr = (ELF(Ehdr)*)base;
|
/external/google-breakpad/src/tools/linux/md2core/ |
minidump-2-core.cc | 62 #define Ehdr ElfW(Ehdr) 1092 Ehdr ehdr; local [all...] |
/system/core/libunwindstack/tests/ |
MapInfoCreateMemoryTest.cpp | 43 template <typename Ehdr, typename Shdr> 48 Ehdr ehdr; local 49 memset(&ehdr, 0, sizeof(ehdr)); 50 memcpy(ehdr.e_ident, ELFMAG, SELFMAG); 51 ehdr.e_ident[EI_CLASS] = class_type; 52 ehdr.e_shoff = sh_offset; 53 ehdr.e_shentsize = sizeof(Shdr) + 100; 54 ehdr.e_shnum = 4 [all...] |
MapInfoGetElfTest.cpp | 52 template <typename Ehdr, typename Shdr> 53 static void InitElf(uint64_t sh_offset, Ehdr* ehdr, uint8_t class_type, uint8_t machine_type) { 54 memset(ehdr, 0, sizeof(*ehdr)); 55 memcpy(ehdr->e_ident, ELFMAG, SELFMAG); 56 ehdr->e_ident[EI_CLASS] = class_type; 57 ehdr->e_machine = machine_type; 58 ehdr->e_shoff = sh_offset; 59 ehdr->e_shentsize = sizeof(Shdr) + 100 83 Elf32_Ehdr ehdr; local 97 Elf64_Ehdr ehdr; local 175 Elf32_Ehdr ehdr; local 204 Elf32_Ehdr ehdr; local 233 Elf32_Ehdr ehdr; local 263 Elf32_Ehdr ehdr; local 291 Elf64_Ehdr ehdr; local 318 Elf64_Ehdr ehdr; local 340 Elf64_Ehdr ehdr; local 367 Elf64_Ehdr ehdr; local [all...] |
/bionic/tools/relocation_packer/src/ |
elf_file.cc | 72 template <typename Ehdr> 73 static void VerboseLogElfHeader(const Ehdr* elf_header) { 265 static void AdjustElfHeaderForHole(typename ELF::Ehdr* elf_header, 438 const typename ELF::Ehdr* elf_header = ELF::getehdr(elf); 466 const typename ELF::Ehdr* elf_header = ELF::getehdr(elf); 627 typename ELF::Ehdr* elf_header = ELF::getehdr(elf); [all...] |
/external/libunwind/src/dwarf/ |
Gfind_unwind_table.c | 129 Elf_W(Ehdr) ehdr; 130 GET_EHDR_FIELD(ei, &ehdr, e_phoff, false); 131 GET_EHDR_FIELD(ei, &ehdr, e_phnum, false); 133 Elf_W(Off) offset = ehdr.e_phoff; 144 for (i = 0; i < ehdr.e_phnum; ++i) { 254 Elf_W(Ehdr) *ehdr; 273 ehdr = ei->u.mapped.image; 274 phdr = (Elf_W(Phdr) *) ((char *) ei->u.mapped.image + ehdr->e_phoff) [all...] |
Gfind_proc_info-lsb.c | 98 Elf_W (Ehdr) ehdr; 114 if (fread (&ehdr, sizeof (Elf_W (Ehdr)), 1, f) != 1) 118 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0) 121 shstrndx = ehdr.e_shstrndx; 124 file, (int) ehdr.e_shoff); 126 fseek (f, ehdr.e_shoff, SEEK_SET); 127 sec_hdrs = calloc (ehdr.e_shnum, sizeof (Elf_W (Shdr))); 128 if (sec_hdrs == NULL || fread (sec_hdrs, sizeof (Elf_W (Shdr)), ehdr.e_shnum, f) != ehdr.e_shnu [all...] |
/art/runtime/ |
elf_file_impl.h | 39 using Elf_Ehdr = typename ElfTypes::Ehdr;
|
/external/google-breakpad/src/common/linux/ |
elf_core_dump_unittest.cc | 63 ElfCoreDump::Ehdr header;
|
/external/libunwind/src/ |
elfxx.h | 58 #define GET_EHDR_FIELD(ei, ehdr, field, check_cached) \ 59 GET_FIELD(ei, 0, Elf_W(Ehdr), ehdr, field, check_cached)
|
/external/valgrind/coregrind/m_coredump/ |
coredump-elf.c | 87 static void fill_ehdr(ESZ(Ehdr) *ehdr, Int num_phdrs) 89 VG_(memset)(ehdr, 0, sizeof(*ehdr)); 91 VG_(memcpy)(ehdr->e_ident, ELFMAG, SELFMAG); 92 ehdr->e_ident[EI_CLASS] = VG_ELF_CLASS; 93 ehdr->e_ident[EI_DATA] = VG_ELF_DATA2XXX; 94 ehdr->e_ident[EI_VERSION] = EV_CURRENT; 96 ehdr->e_type = ET_CORE; 97 ehdr->e_machine = VG_ELF_MACHINE [all...] |
coredump-solaris.c | 376 static void fill_ehdr(VKI_ESZ(Ehdr) *ehdr, Int num_phdrs) 378 VG_(memset)(ehdr, 0, sizeof(*ehdr)); 380 VG_(memcpy)(ehdr->e_ident, VKI_ELFMAG, VKI_SELFMAG); 381 ehdr->e_ident[VKI_EI_CLASS] = VG_ELF_CLASS; 382 ehdr->e_ident[VKI_EI_DATA] = VG_ELF_DATA2XXX; 383 ehdr->e_ident[VKI_EI_VERSION] = VKI_EV_CURRENT; 385 ehdr->e_type = VKI_ET_CORE; 386 ehdr->e_machine = VG_ELF_MACHINE [all...] |
/external/compiler-rt/lib/cfi/ |
cfi.cc | 21 typedef ElfW(Ehdr) Elf_Ehdr;
|