/external/elfutils/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...] |
elf32_getchdr.c | 45 ElfW2(LIBELFBITS,Shdr) *shdr = elfw2(LIBELFBITS,getshdr) (scn); 46 if (shdr == NULL) 51 if ((shdr->sh_flags & SHF_ALLOC) != 0) 57 if (shdr->sh_type == SHT_NULL 58 || shdr->sh_type == SHT_NOBITS) 64 if ((shdr->sh_flags & SHF_COMPRESSED) == 0)
|
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) 248 #define shdr_dest ((ElfW2(LIBELFBITS,Shdr) *) shdr_start) 261 && 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)
|
/external/llvm/tools/obj2yaml/ |
elf2yaml.cpp | 33 std::error_code dumpCommonSection(const Elf_Shdr *Shdr, ELFYAML::Section &S); 34 std::error_code dumpCommonRelocationSection(const Elf_Shdr *Shdr, 40 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr); 41 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr); 43 dumpContentSection(const Elf_Shdr *Shdr); 44 ErrorOr<ELFYAML::NoBitsSection *> dumpNoBitsSection(const Elf_Shdr *Shdr); 45 ErrorOr<ELFYAML::Group *> dumpGroup(const Elf_Shdr *Shdr); 46 ErrorOr<ELFYAML::MipsABIFlags *> dumpMipsABIFlags(const Elf_Shdr *Shdr); 190 const Elf_Shdr *Shdr = *ShdrOrErr; 191 if (!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) { 489 typename ELF::Shdr* section_header = ELF::getshdr(section); 749 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); 834 typename ELF::Shdr* section_header = ELF::getshdr(relocations_section_); [all...] |
/toolchain/binutils/binutils-2.25/libiberty/ |
simple-object-elf.c | 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 434 unsigned char shdr[sizeof (Elf64_External_Shdr)]; local 438 if (!simple_object_internal_read (descriptor, offset + eor->shoff, shdr, 449 eor->shnum = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 450 shdr, sh_size, Elf_Addr); 454 eor->shstrndx = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 455 shdr, sh_link, Elf_Word); 531 name_size = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 533 shstroff = ELF_FETCH_FIELD (type_functions, ei_class, Shdr, 547 unsigned char *shdr; local [all...] |
/bionic/libc/bionic/ |
vdso.cpp | 65 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;
|
/toolchain/binutils/binutils-2.25/gold/ |
object.cc | 121 typename elfcpp::Shdr<size, big_endian> shdr(p); 122 bytecount = convert_to_section_size_type(shdr.get_sh_size()); 123 contents = object->get_view(shdr.get_sh_offset(), bytecount, true, false); 203 typename elfcpp::Shdr<size, big_endian> shdrnames(pshdrnames); 479 typename This::Shdr shdr(p); 480 if (shdr.get_sh_type() == elfcpp::SHT_SYMTAB) 498 if (shdr.get_sh_type() == elfcpp::SHT_SYMTAB_SHNDX) 501 xindex_link = this->adjust_shndx(shdr.get_sh_link()) [all...] |
dynobj.h | 285 typedef elfcpp::Shdr<size, big_endian> Shdr;
|
layout.h | 511 init_fixed_output_section(const char*, elfcpp::Shdr<size, big_endian>&); 513 // Given an input section SHNDX, named NAME, with data in SHDR, from 523 const char* name, const elfcpp::Shdr<size, big_endian>& shdr, 594 // section is RELOC_SHNDX in OBJECT, with data in SHDR. 601 const elfcpp::Shdr<size, big_endian>& shdr, 613 const elfcpp::Shdr<size, big_endian>& shdr, 621 // .eh_frame section in OBJECT. SHDR is the section header [all...] |
layout.cc | 654 const elfcpp::Shdr<size, big_endian>& shdr) 657 && (shdr.get_sh_flags() & elfcpp::SHF_EXCLUDE)) 660 elfcpp::Elf_Word sh_type = shdr.get_sh_type(); 694 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0) 700 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0) 711 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0) 722 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0) 735 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0) [all...] |
/external/libunwind/src/ |
elfxx.c | 137 Debug (1, "string shdr table outside of image? (%lu > %lu)\n", 143 Elf_W(Shdr) shdr; 144 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_offset); 145 GET_SHDR_FIELD(ei, str_soff, &shdr, sh_size); 146 if (shdr.sh_offset + shdr.sh_size > size) { 148 (unsigned long) (shdr.sh_offset + shdr.sh_size), 153 Debug (16, "strtab=0x%lx\n", (long) shdr.sh_offset) [all...] |
/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...] |
/bionic/linker/ |
linker_phdr.h | 84 const ElfW(Shdr)* shdr_table_;
|
/external/llvm/tools/llvm-readobj/ |
ELFDumper.cpp | 495 for (const auto &Shdr : Obj->sections()) 496 if (Shdr.sh_addr == Addr) 497 return &Shdr; 504 for (const auto &Shdr : Obj.sections()) { 505 if (Name == errorOrDefault(Obj.getSectionName(&Shdr))) 506 return &Shdr; [all...] |