/system/core/libunwindstack/tests/ |
ElfTestUtils.h | 27 template <typename Ehdr> 28 void TestInitEhdr(Ehdr* ehdr, uint32_t elf_class, uint32_t machine_type); 30 template <typename Ehdr, typename Shdr>
|
GenGnuDebugdata.cpp | 33 template <typename Ehdr> 34 void InitEhdr(Ehdr* ehdr, uint32_t elf_class, uint32_t machine) { 35 memset(ehdr, 0, sizeof(Ehdr)); 36 memcpy(&ehdr->e_ident[0], ELFMAG, SELFMAG); 37 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; 38 ehdr->e_ident[EI_VERSION] = EV_CURRENT; 39 ehdr->e_ident[EI_OSABI] = ELFOSABI_SYSV; 40 ehdr->e_ident[EI_CLASS] = elf_class [all...] |
ElfTestUtils.cpp | 36 template <typename Ehdr> 37 void TestInitEhdr(Ehdr* ehdr, uint32_t elf_class, uint32_t machine_type) { 38 memset(ehdr, 0, sizeof(Ehdr)); 39 memcpy(&ehdr->e_ident[0], ELFMAG, SELFMAG); 40 ehdr->e_ident[EI_DATA] = ELFDATA2LSB; 41 ehdr->e_ident[EI_VERSION] = EV_CURRENT; 42 ehdr->e_ident[EI_OSABI] = ELFOSABI_SYSV; 43 ehdr->e_ident[EI_CLASS] = elf_class 62 Ehdr ehdr; local [all...] |
ElfInterfaceTest.cpp | 51 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType> 54 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType> 57 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType> 60 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType> 63 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType> 73 template <typename Ehdr, typename Phdr, typename Shdr, typename Dyn> 100 template <typename Ehdr, typename Shdr, typename ElfInterfaceType> 103 template <typename Ehdr, typename Shdr, typename Sym, typename ElfInterfaceType> 106 template <typename Ehdr, typename Shdr, typename ElfInterfaceType> 131 template <typename Ehdr, typename Phdr, typename Dyn, typename ElfInterfaceType 135 Ehdr ehdr; local 175 Ehdr ehdr; local 244 Ehdr ehdr; local 315 Ehdr ehdr; local 374 Ehdr ehdr; local 447 Elf32_Ehdr ehdr; local 483 Ehdr ehdr; local 751 Ehdr ehdr; local 777 Ehdr ehdr; local 866 Ehdr ehdr; local 959 Elf32_Ehdr ehdr; local 987 Elf32_Ehdr ehdr; local 1020 Elf32_Ehdr ehdr; local 1083 Elf32_Ehdr ehdr; local [all...] |
/external/elfutils/libelf/ |
elf-knowledge.h | 99 #define SH_ENTSIZE_HASH(Ehdr) \ 100 ((Ehdr)->e_machine == EM_ALPHA \ 101 || ((Ehdr)->e_machine == EM_S390 \ 102 && (Ehdr)->e_ident[EI_CLASS] == ELFCLASS64) ? 8 : 4)
|
elf32_getehdr.c | 44 static ElfW2(LIBELFBITS,Ehdr) * 74 return elf->state.ELFW(elf,LIBELFBITS).ehdr; 77 ElfW2(LIBELFBITS,Ehdr) * 84 ElfW2(LIBELFBITS,Ehdr) * 87 ElfW2(LIBELFBITS,Ehdr) *result;
|
elf32_newehdr.c | 44 ElfW2(LIBELFBITS,Ehdr) * 47 ElfW2(LIBELFBITS,Ehdr) *result; 70 if (elf->state.ELFW(elf,LIBELFBITS).ehdr == NULL) 73 elf->state.ELFW(elf,LIBELFBITS).ehdr = 77 memset (elf->state.ELFW(elf,LIBELFBITS).ehdr, '\0', 78 sizeof (ElfW2(LIBELFBITS,Ehdr))); 84 result = elf->state.ELFW(elf,LIBELFBITS).ehdr;
|
gelf_xlate.h | 41 TYPE (Ehdr, LIBELFBITS)
|
/bionic/libc/bionic/ |
dl_iterate_phdr_static.cpp | 39 ElfW(Ehdr)* ehdr = reinterpret_cast<ElfW(Ehdr)*>(&__executable_start); 41 if (memcmp(ehdr->e_ident, ELFMAG, SELFMAG) != 0) { 53 exe_info.dlpi_phdr = reinterpret_cast<ElfW(Phdr)*>(reinterpret_cast<uintptr_t>(ehdr) + ehdr->e_phoff); 54 exe_info.dlpi_phnum = ehdr->e_phnum; 63 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(getauxval(AT_SYSINFO_EHDR));
|
vdso.cpp | 85 ElfW(Ehdr)* vdso_ehdr = reinterpret_cast<ElfW(Ehdr)*>(vdso_ehdr_addr);
|
/external/google-breakpad/src/common/linux/ |
elfutils.cc | 48 typedef typename ElfClass::Ehdr Ehdr; 57 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); 83 typedef typename ElfClass::Ehdr Ehdr; 92 const Ehdr* elf_header = reinterpret_cast<const Ehdr*>(elf_base); 115 const ElfW(Ehdr)* elf_header = 116 reinterpret_cast<const ElfW(Ehdr)*>(elf_base) [all...] |
elf_core_dump.h | 49 typedef ElfW(Ehdr) Ehdr; 116 const Ehdr* GetHeader() const;
|
elfutils.h | 46 typedef Elf32_Ehdr Ehdr; 59 typedef Elf64_Ehdr Ehdr; 113 GetOffset(const typename ElfClass::Ehdr* elf_header,
|
elf_core_dump.cc | 109 const Ehdr* header = GetHeader(); 120 const ElfCoreDump::Ehdr* ElfCoreDump::GetHeader() const { 121 return content_.GetData<Ehdr>(0); 125 const Ehdr* header = GetHeader(); 145 const Ehdr* header = GetHeader();
|
synth_elf_unittest.cc | 199 typedef typename TypeParam::Ehdr Ehdr; 204 const size_t kExpectedSize = sizeof(Ehdr) + 217 const Ehdr* header = 218 reinterpret_cast<const Ehdr*>(contents.data()); 230 EXPECT_EQ(sizeof(Ehdr) + kStringTableSize + kStringTableAlign, 233 EXPECT_EQ(sizeof(Ehdr), header->e_ehsize); 257 EXPECT_EQ(sizeof(Ehdr), shdr[1].sh_offset); 266 typedef typename TypeParam::Ehdr Ehdr; [all...] |
elfutils-inl.h | 39 const T* GetOffset(const typename ElfClass::Ehdr* elf_header,
|
dump_symbols.cc | 177 bool LoadStabs(const typename ElfClass::Ehdr* elf_header, 227 const typename ElfClass::Ehdr* elf_header, 292 bool DwarfCFIRegisterNames(const typename ElfClass::Ehdr* elf_header, 317 const typename ElfClass::Ehdr* elf_header, 400 bool ElfEndianness(const typename ElfClass::Ehdr* elf_header, 587 const typename ElfClass::Ehdr* elf_header, 776 const char* ElfArchitecture(const typename ElfClass::Ehdr* elf_header) { 824 bool SanitizeDebugFile(const typename ElfClass::Ehdr* debug_elf_header, 855 bool ReadSymbolDataElfClass(const typename ElfClass::Ehdr* elf_header, 860 typedef typename ElfClass::Ehdr Ehdr [all...] |
/bionic/tools/relocation_packer/src/ |
elf_traits.h | 23 typedef Elf32_Ehdr Ehdr; 36 static inline Ehdr* getehdr(Elf* elf) { return elf32_getehdr(elf); } 47 typedef Elf64_Ehdr Ehdr; 60 static inline Ehdr* getehdr(Elf* elf) { return elf64_getehdr(elf); }
|
/toolchain/binutils/binutils-2.27/gold/ |
target.cc | 72 const elfcpp::Ehdr<size, big_endian>& ehdr) 74 int et = ehdr.get_e_type(); 81 new Sized_relobj_file<size, big_endian>(name, input_file, offset, ehdr); 88 new Sized_dynobj<size, big_endian>(name, input_file, offset, ehdr); 100 // Make an ELF object called NAME by reading INPUT_FILE at OFFSET. EHDR 107 off_t offset, const elfcpp::Ehdr<32, false>& ehdr) 110 offset, ehdr); 117 off_t offset, const elfcpp::Ehdr<32, true>& ehdr [all...] |
/toolchain/binutils/binutils-2.27/libiberty/ |
simple-object-elf.c | 85 /* Indexes and values in e_ident field of Ehdr. */ 114 /* Values for e_type field of Ehdr. */ 118 /* Values for e_machine field of Ehdr. */ 257 elf/external.h: Ehdr, Shdr, etc. FIELD is the name of a field in 289 elf/external.h: Ehdr, Shdr, etc. FIELD is the name of a field in 362 unsigned char ehdr[sizeof (Elf64_External_Ehdr)]; local 411 if (!simple_object_internal_read (descriptor, offset, ehdr, sizeof ehdr, 420 eor->machine = ELF_FETCH_FIELD (type_functions, ei_class, Ehdr, ehdr, [all...] |
/bionic/linker/ |
linker_main.cpp | 57 static ElfW(Addr) get_elf_exec_load_bias(const ElfW(Ehdr)* elf); 147 ElfW(Ehdr)* ehdr_vdso = reinterpret_cast<ElfW(Ehdr)*>(args.getauxval(AT_SYSINFO_EHDR)); 188 ElfW(Ehdr)* elf_hdr = reinterpret_cast<ElfW(Ehdr)*>(linker_base); 340 ElfW(Ehdr)* elf_hdr = reinterpret_cast<ElfW(Ehdr)*>(si->base); 483 static ElfW(Addr) get_elf_exec_load_bias(const ElfW(Ehdr)* elf) { 527 ElfW(Ehdr)* elf_hdr = reinterpret_cast<ElfW(Ehdr)*>(linker_addr) [all...] |
/bionic/libc/malloc_debug/ |
MapData.cpp | 86 ElfW(Ehdr) ehdr; 87 if (!get_val<ElfW(Half)>(entry, addr + offsetof(ElfW(Ehdr), e_phnum), &ehdr.e_phnum)) { 90 if (!get_val<ElfW(Off)>(entry, addr + offsetof(ElfW(Ehdr), e_phoff), &ehdr.e_phoff)) { 93 addr += ehdr.e_phoff; 94 for (size_t i = 0; i < ehdr.e_phnum; i++) {
|
/bionic/tests/ |
link_test.cpp | 55 const ElfW(Ehdr)* ehdr = reinterpret_cast<const ElfW(Ehdr)*>(info->dlpi_addr + 58 ASSERT_EQ(0, memcmp(ehdr, ELFMAG, SELFMAG)); 60 ASSERT_EQ(info->dlpi_phnum, ehdr->e_phnum);
|
/external/libunwind/src/ |
elfxx.c | 113 static bool elf_w (section_table_offset) (struct elf_image* ei, Elf_W(Ehdr)* ehdr, Elf_W(Off)* offset) { 114 GET_EHDR_FIELD(ei, ehdr, e_shoff, true); 115 GET_EHDR_FIELD(ei, ehdr, e_shentsize, true); 116 GET_EHDR_FIELD(ei, ehdr, e_shnum, true); 119 if (ehdr->e_shoff + ehdr->e_shnum * ehdr->e_shentsize > size) { 121 (unsigned long) (ehdr->e_shoff + ehdr->e_shnum * ehdr->e_shentsize) [all...] |
/frameworks/compile/mclinker/include/mcld/ADT/ |
SizeTraits.h | 51 typedef llvm::ELF::Elf32_Ehdr Ehdr; 71 typedef llvm::ELF::Elf64_Ehdr Ehdr;
|