/external/elfutils/src/libelf/ |
elf-knowledge.h | 37 #define SECTION_STRIP_P(shdr, name, remove_comment) \ 39 (((shdr)->sh_flags & SHF_ALLOC) == 0 \ 41 && (shdr)->sh_type != SHT_NOTE \ 42 && (((shdr)->sh_type) != SHT_PROGBITS \ 60 #define SH_INFO_LINK_P(Shdr) \ 61 ((Shdr)->sh_type == SHT_REL || (Shdr)->sh_type == SHT_RELA \ 62 || ((Shdr)->sh_flags & SHF_INFO_LINK) != 0)
|
elf32_getshdr.c | 48 static ElfW2(LIBELFBITS,Shdr) * 51 ElfW2(LIBELFBITS,Shdr) *result; 58 result = scn->shdr.ELFW(e,LIBELFBITS); 64 || shnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Shdr))) 66 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); 70 ElfW2(LIBELFBITS,Shdr) *shdr = elf->state.ELFW(elf,LIBELFBITS).shdr = 71 (ElfW2(LIBELFBITS,Shdr) *) malloc (size); 72 if (elf->state.ELFW(elf,LIBELFBITS).shdr == NULL [all...] |
gelf_xlate.h | 43 TYPE (Shdr, LIBELFBITS)
|
elf32_updatefile.c | 59 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset 60 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) 63 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_offset 64 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_offset) 67 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size 68 < (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) 71 if ((*scna)->shdr.ELFW(e,LIBELFBITS)->sh_size 72 > (*scnb)->shdr.ELFW(e,LIBELFBITS)->sh_size) 220 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) 233 && scn->shdr.ELFW(e,LIBELFBITS) != &shdr_dest[scn->index] [all...] |
abstract.h | 83 START (32, Shdr, Ext##Shdr) \ 94 END (32, Ext##Shdr) 96 START (64, Shdr, Ext##Shdr) \ 107 END (64, Ext##Shdr)
|
elf32_updatenull.c | 182 update_if_changed (scn0->shdr.ELFW(e,LIBELFBITS)->sh_size, 191 if (list->data[1].shdr.ELFW(e,LIBELFBITS) == NULL) 199 ElfW2(LIBELFBITS,Shdr) *shdr = scn->shdr.ELFW(e,LIBELFBITS); 202 assert (shdr != NULL); 203 ElfW2(LIBELFBITS,Word) sh_entsize = shdr->sh_entsize; 204 ElfW2(LIBELFBITS,Word) sh_align = shdr->sh_addralign ?: 1; 207 switch (shdr->sh_type) 250 update_if_changed (shdr->sh_entsize, sh_entsize [all...] |
/external/llvm/tools/obj2yaml/ |
elf2yaml.cpp | 32 std::error_code dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S); 33 std::error_code dumpCommonRelocationSection(const Elf_Shdr *Shdr, 36 std::error_code dumpRelocation(const Elf_Shdr *Shdr, const RelT *Rel, 39 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr); 40 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr); 42 dumpContentSection(const Elf_Shdr *Shdr); 43 ErrorOr<ELFYAML::Group *> dumpGroup(const Elf_Shdr *Shdr); 152 const Elf_Shdr *Shdr = Obj.getSection(&*Sym); 153 if (!Shdr) 156 NameOrErr = Obj.getSectionName(Shdr); [all...] |
/external/google-breakpad/src/common/linux/ |
elfutils.h | 49 typedef Elf32_Shdr Shdr; 62 typedef Elf64_Shdr Shdr; 88 const typename ElfClass::Shdr* 91 const typename ElfClass::Shdr* sections,
|
elfutils-inl.h | 46 const typename ElfClass::Shdr* FindElfSectionByName( 49 const typename ElfClass::Shdr* sections,
|
elfutils.cc | 49 typedef typename ElfClass::Shdr Shdr; 60 const Shdr* sections = 61 GetOffset<ElfClass, Shdr>(elf_header, elf_header->e_shoff); 62 const Shdr* section_names = sections + elf_header->e_shstrndx; 67 const Shdr* section =
|
dump_symbols.cc | 178 const typename ElfClass::Shdr* stab_section, 179 const typename ElfClass::Shdr* stabstr_section, 231 typedef typename ElfClass::Shdr Shdr; 243 const Shdr* sections = 244 GetOffset<ElfClass, Shdr>(elf_header, elf_header->e_shoff); 246 const Shdr* section_names = sections + elf_header->e_shstrndx; 248 const Shdr* section = §ions[i]; 319 const typename ElfClass::Shdr* section, 321 const typename ElfClass::Shdr* got_section [all...] |
synth_elf_unittest.cc | 201 typedef typename TypeParam::Shdr Shdr; 206 2 * sizeof(Shdr) + 236 EXPECT_EQ(sizeof(Shdr), header->e_shentsize); 240 const Shdr* shdr = local 241 reinterpret_cast<const Shdr*>(contents.data() + header->e_shoff); 242 EXPECT_EQ(0U, shdr[0].sh_name); 243 EXPECT_EQ(static_cast<unsigned int>(SHT_NULL), shdr[0].sh_type); 244 EXPECT_EQ(0U, shdr[0].sh_flags) 315 const Shdr* shdr = local [all...] |
/bionic/tools/relocation_packer/src/ |
elf_traits.h | 28 typedef Elf32_Shdr Shdr; 38 static inline Shdr* getshdr(Elf_Scn* scn) { return elf32_getshdr(scn); } 52 typedef Elf64_Shdr Shdr; 62 static inline Shdr* getshdr(Elf_Scn* scn) { return elf64_getshdr(scn); }
|
elf_file.cc | 110 template <typename Shdr> 112 const Shdr* section_header) { 416 typename ELF::Shdr* section_header = ELF::getshdr(section); 676 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); 761 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); 814 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); [all...] |
/bionic/libc/bionic/ |
vdso.cpp | 76 ElfW(Shdr)* vdso_shdr = reinterpret_cast<ElfW(Shdr)*>(vdso_ehdr_addr + vdso_ehdr->e_shoff);
|
/frameworks/compile/mclinker/include/mcld/ADT/ |
SizeTraits.h | 52 typedef llvm::ELF::Elf32_Shdr Shdr; 72 typedef llvm::ELF::Elf64_Shdr Shdr;
|
/external/libunwind/src/ |
elfxx.c | 135 Debug (1, "string shdr table outside of image? (%lu > %lu)\n", 141 Elf_W(Shdr) shdr; 142 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_offset); 143 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_size); 144 if (shdr.sh_offset + shdr.sh_size > size) { 146 (unsigned long) (shdr.sh_offset + shdr.sh_size), 151 Debug (16, "strtab=0x%lx\n", (long) shdr.sh_offset) [all...] |
elfxx.h | 64 #define GET_SHDR_FIELD(ei, offset, shdr, field) \ 65 GET_FIELD(ei, offset, Elf_W(Shdr), shdr, field, false)
|
/ndk/sources/host-tools/ndk-depends/ |
ndk-depends.cc | 400 struct Shdr { 441 struct Shdr { 466 typedef typename ELF::Shdr Shdr; 499 if (table_entry_size_ < static_cast<Half>(sizeof(Shdr))) { 538 Word sh_type = GetWordAt(table_offset + offsetof(Shdr, sh_type)); 540 *size = GetOffAt(table_offset + offsetof(Shdr, sh_size)); 541 return GetOffAt(table_offset + offsetof(Shdr, sh_offset)); 555 Word sh_type = GetWordAt(table_offset + offsetof(Shdr, sh_type)); 557 return GetWordAt(table_offset + offsetof(Shdr, sh_link)) [all...] |
/art/runtime/ |
elf_file_impl.h | 44 using Elf_Shdr = typename ElfTypes::Shdr;
|
elf_file.cc | 761 typename ElfTypes::Shdr* ElfFileImpl<ElfTypes>::GetSectionHeader(Elf_Word i) const { 776 typename ElfTypes::Shdr* ElfFileImpl<ElfTypes>::FindSectionByType(Elf_Word type) const { 804 typename ElfTypes::Shdr* ElfFileImpl<ElfTypes>::GetSectionNameStringSection() const { 1388 Elf_Shdr* shdr = GetSectionHeader(i); local 1875 Elf64_Shdr *shdr = elf64_->FindSectionByName(section_name); local 1887 Elf32_Shdr *shdr = elf32_->FindSectionByName(section_name); local [all...] |
/frameworks/compile/mclinker/lib/LD/ |
ELFObjectWriter.cpp | 191 sizeof(ELFSizeTraits<32>::Shdr) * pModule.size(); 194 sizeof(ELFSizeTraits<64>::Shdr) * pModule.size(); 207 typedef typename ELFSizeTraits<SIZE>::Shdr ElfXX_Shdr; 301 typedef typename ELFSizeTraits<SIZE>::Shdr ElfXX_Shdr; 308 ElfXX_Shdr* shdr = reinterpret_cast<ElfXX_Shdr*>(region.begin()); local 315 shdr[sectIdx].sh_name = shstridx; 316 shdr[sectIdx].sh_type = ld_sect->type(); 317 shdr[sectIdx].sh_flags = ld_sect->flag(); 318 shdr[sectIdx].sh_addr = ld_sect->addr(); 319 shdr[sectIdx].sh_offset = ld_sect->offset() [all...] |
/external/libunwind/src/dwarf/ |
Gfind_proc_info-lsb.c | 99 Elf_W (Shdr) *sec_hdrs = NULL; 122 sec_hdrs = calloc (ehdr.e_shnum, sizeof (Elf_W (Shdr))); 123 if (fread (sec_hdrs, sizeof (Elf_W (Shdr)), ehdr.e_shnum, f) != ehdr.e_shnum)
|
/external/google-breakpad/src/tools/linux/md2core/ |
minidump-2-core.cc | 64 #define Shdr ElfW(Shdr) [all...] |
/external/llvm/tools/llvm-readobj/ |
ELFDumper.cpp | 167 for (const auto &Shdr : Obj->sections()) 168 if (Shdr.sh_addr == Addr) 169 return &Shdr; [all...] |