Home
last modified time | relevance | path

Searched refs:sh_type (Results 1 – 25 of 124) sorted by relevance

12345

/external/elfutils/libelf/
Delf_compress_gnu.c60 Elf64_Word sh_type; in elf_compress_gnu() local
69 sh_type = shdr->sh_type; in elf_compress_gnu()
79 sh_type = shdr->sh_type; in elf_compress_gnu()
91 if (sh_type == SHT_NULL || sh_type == SHT_NOBITS) in elf_compress_gnu()
200 __libelf_data_type (elf, sh_type, sh_addralign)); in elf_compress_gnu()
Delf-knowledge.h41 && (shdr)->sh_type != SHT_NOTE \
42 && (((shdr)->sh_type) != SHT_PROGBITS \
61 ((Shdr)->sh_type == SHT_REL || (Shdr)->sh_type == SHT_RELA \
Delf_compress.c365 Elf64_Word sh_type; in elf_compress() local
374 sh_type = shdr->sh_type; in elf_compress()
384 sh_type = shdr->sh_type; in elf_compress()
394 if (sh_type == SHT_NULL || sh_type == SHT_NOBITS) in elf_compress()
527 __libelf_data_type (elf, sh_type, in elf_compress()
Delf32_getchdr.c57 if (shdr->sh_type == SHT_NULL in ElfW2()
58 || shdr->sh_type == SHT_NOBITS) in ElfW2()
Delf32_getshdr.c141 CONVERT_TO (shdr[cnt].sh_type, notcvt[cnt].sh_type); in ElfW2()
155 if (shdr[cnt].sh_type == SHT_SYMTAB_SHNDX in ElfW2()
190 CONVERT (shdr[cnt].sh_type); in ElfW2()
/external/elfutils/libebl/
Deblcheckreloctargettype.c37 ebl_check_reloc_target_type (Ebl *ebl, Elf64_Word sh_type) in ebl_check_reloc_target_type() argument
39 if (ebl->check_reloc_target_type (ebl, sh_type)) in ebl_check_reloc_target_type()
42 switch (sh_type) in ebl_check_reloc_target_type()
Deblsectionstripp.c49 if (shdr->sh_type == SHT_RELA || shdr->sh_type == SHT_REL) in ebl_section_strip_p()
/external/swiftshader/third_party/LLVM/test/Scripts/
Delf-dump57 self.sh_type = f.read32()
69 print " ('sh_type', %s)" % common_dump.HexDump(self.sh_type)
78 if self.sh_type[0] == 2: # SHT_SYMTAB
82 elif self.sh_type[0] == 4 or self.sh_type[0] == 9: # SHT_RELA / SHT_REL
84 dumpRel(f, self, self.sh_type[0] == 4)
88 if self.sh_type != 8: # != SHT_NOBITS
/external/elfutils/src/
Dunstrip.c365 switch (shdr->sh_type) in section_can_shrink()
447 switch (shdr->sh_type) in adjust_relocs()
604 if (shdr->sh_type != SHT_NOBITS && shdr->sh_type != SHT_GROUP in adjust_all_relocs()
951 Elf64_Word sh_type) in sections_flags_match() argument
953 if (sh_type == SHT_REL || sh_type == SHT_RELA) in sections_flags_match()
968 sections[i].shdr.sh_type) in sections_match()
1019 if (shdr->sh_type != SHT_GROUP) in get_group_sig()
1068 if (sec->shdr.sh_type == SHT_PROGBITS in find_alloc_sections_prelink()
1157 COPY (sh_type); in find_alloc_sections_prelink()
1253 && (((sec->shdr.sh_type == undo_sec->shdr.sh_type in find_alloc_sections_prelink()
[all …]
Dstrip.c392 if (shdr != NULL && shdr->sh_type == SHT_SYMTAB) in get_xndxdata()
402 && xndxshdr->sh_type == SHT_SYMTAB_SHNDX in get_xndxdata()
460 if (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in remove_debug_relocations()
468 if (tshdr->sh_type == SHT_NOBITS in remove_debug_relocations()
666 if (shdr->sh_type == SHT_REL) in remove_debug_relocations()
868 GElf_Off filesz = (shdr.sh_type != SHT_NOBITS in handle_debug_relocs()
910 GElf_Off filesz = (shdr.sh_type != SHT_NOBITS in handle_debug_relocs()
1240 if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_SYMTAB_SHNDX)) in handle_elf()
1245 else if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_GROUP)) in handle_elf()
1274 else if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_GNU_versym)) in handle_elf()
[all …]
Delfcmp.c317 if (shdr1->sh_type != shdr2->sh_type in main()
347 switch (shdr1->sh_type) in main()
523 assert (shdr1->sh_type == SHT_NOBITS in main()
525 assert (shdr2->sh_type == SHT_NOBITS in main()
529 || (shdr1->sh_type != SHT_NOBITS in main()
535 && shdr1->sh_type == SHT_HASH in main()
764 if ((shdr->sh_type != SHT_REL && shdr->sh_type != SHT_RELA) in search_for_copy_reloc()
774 if (shdr->sh_type == SHT_REL && shdr->sh_entsize != 0) in search_for_copy_reloc()
Delflint.c572 if (shdr->sh_type != SHT_GROUP) in check_scn_group()
621 if (strshdr->sh_type != SHT_STRTAB) in check_symtab()
642 if (xndxshdr->sh_type == SHT_SYMTAB_SHNDX in check_symtab()
1058 && shdr->sh_type == SHT_DYNSYM) in check_symtab()
1094 if (rcshdr->sh_type == SHT_DYNAMIC && rcshdr->sh_entsize != 0) in is_rel_dyn()
1262 if(! ebl_check_reloc_target_type (ebl, (*destshdrp)->sh_type)) in check_reloc_shdr()
1323 if (dynshdr != NULL && dynshdr->sh_type == SHT_DYNAMIC in check_reloc_shdr()
1657 if (strshdr != NULL && strshdr->sh_type != SHT_STRTAB) in check_dynamic()
1939 if (symshdr != NULL && symshdr->sh_type != SHT_SYMTAB) in check_symtab_shndx()
1973 if (rshdr != NULL && rshdr->sh_type == SHT_SYMTAB_SHNDX in check_symtab_shndx()
[all …]
Dfindtextrel.c258 switch (shdr->sh_type) in process_file()
400 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in process_file()
414 if (shdr->sh_type == SHT_REL) in process_file()
438 else if (shdr->sh_type == SHT_RELA) in process_file()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DELFObjectFile.h293 assert(SymTable->sh_type == ELF::SHT_SYMTAB || in toDRI()
294 SymTable->sh_type == ELF::SHT_DYNSYM); in toDRI()
386 if (Sec.sh_type == ELF::SHT_ARM_ATTRIBUTES) { in getBuildAttributes()
449 return getSection(Sec)->sh_type; in getSectionType()
713 return EShdr->sh_type == ELF::SHT_PROGBITS && in isSectionData()
722 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS()
736 if (Sec.sh_type != ELF::SHT_DYNAMIC) in dynamic_relocation_sections()
756 return getSection(Sec)->sh_type == ELF::SHT_NOBITS; in isSectionVirtual()
777 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_end()
798 uintX_t Type = EShdr->sh_type; in getRelocatedSection()
[all …]
/external/llvm/include/llvm/Object/
DELFObjectFile.h262 assert(SymTable->sh_type == ELF::SHT_SYMTAB || in toDRI()
263 SymTable->sh_type == ELF::SHT_DYNSYM); in toDRI()
380 return getSection(Sec)->sh_type; in getSectionType()
611 EShdr->sh_type == ELF::SHT_PROGBITS; in isSectionData()
618 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS()
623 return getSection(Sec)->sh_type == ELF::SHT_NOBITS; in isSectionVirtual()
641 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_end()
662 uintX_t Type = EShdr->sh_type; in getRelocatedSection()
683 if (sec->sh_type == ELF::SHT_REL) in getRelocationSymbol()
702 if (sec->sh_type == ELF::SHT_REL) in getRelocationOffset()
[all …]
DELF.h436 if (Section->sh_type != ELF::SHT_STRTAB) in getStringTable()
451 assert(Section.sh_type == ELF::SHT_SYMTAB_SHNDX); in getSHNDXTable()
465 if (SymTable.sh_type != ELF::SHT_SYMTAB && in getSHNDXTable()
466 SymTable.sh_type != ELF::SHT_DYNSYM) in getSHNDXTable()
476 if (Sec.sh_type != ELF::SHT_SYMTAB && Sec.sh_type != ELF::SHT_DYNSYM) in getStringTableForSymtab()
/external/u-boot/tools/
Dmips-relocs.c197 unsigned int i, j, i_rel_shdr, sh_type, sh_entsize, sh_entries; in main() local
322 sh_type = shdr_field(i, sh_type); in main()
323 if ((sh_type != SHT_REL) && (sh_type != SHT_RELA)) in main()
354 if (sh_type == SHT_REL) { in main()
/external/elfutils/tests/
Dupdate4.c131 shdr->sh_type = SHT_PROGBITS; in main()
167 shdr->sh_type = SHT_PROGBITS; in main()
203 shdr->sh_type = SHT_PROGBITS; in main()
239 shdr->sh_type = SHT_NOBITS; in main()
276 shdr->sh_type = SHT_STRTAB; in main()
/external/swiftshader/third_party/LLVM/lib/Object/
DELFObjectFile.cpp99 Elf_Word sh_type; // Section type (SHT_*) member
114 Elf_Word sh_type; // Section type (SHT_*) member
548 switch (Section->sh_type) { in getSymbolNMTypeChar()
727 && sec->sh_type == ELF::SHT_PROGBITS) in isSectionData()
740 && sec->sh_type == ELF::SHT_NOBITS) in isSectionBSS()
826 switch (sec->sh_type) { in getRelocationSymbol()
854 switch (sec->sh_type) { in getRelocationAddress()
876 switch (sec->sh_type) { in getRelocationType()
901 switch (sec->sh_type) { in getRelocationTypeName()
1012 switch (sec->sh_type) { in getRelocationAdditionalInfo()
[all …]
/external/elfutils/libdwelf/
Ddwelf_scn_gnu_compressed_size.c48 || shdr.sh_type == SHT_NULL in dwelf_scn_gnu_compressed_size()
49 || shdr.sh_type == SHT_NOBITS) in dwelf_scn_gnu_compressed_size()
/external/elfutils/libdwfl/
Drelocate.c133 if ((shdr->sh_type == SHT_SYMTAB in relocate_getsym()
134 || shdr->sh_type == SHT_SYMTAB_SHNDX) in relocate_getsym()
139 switch (shdr->sh_type) in relocate_getsym()
533 if (unlikely (tshdr->sh_type == SHT_NOBITS) in relocate_section()
624 = gelf_fsize (relocated, shdr->sh_type == SHT_REL ? ELF_T_REL : ELF_T_RELA, in relocate_section()
628 if (shdr->sh_type == SHT_REL) in relocate_section()
706 if (shdr->sh_type == SHT_REL) in relocate_section()
776 if ((shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in __libdwfl_relocate()
Dderelocate.c147 && (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in cache_sections()
210 && (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA)) in cache_sections()
/external/google-breakpad/src/common/linux/
Dsynth_elf_unittest.cc243 EXPECT_EQ(static_cast<unsigned int>(SHT_NULL), shdr[0].sh_type); in TYPED_TEST()
254 EXPECT_EQ(static_cast<unsigned int>(SHT_STRTAB), shdr[1].sh_type); in TYPED_TEST()
318 EXPECT_EQ(static_cast<unsigned int>(SHT_NULL), shdr[0].sh_type); in TYPED_TEST()
329 EXPECT_EQ(static_cast<unsigned int>(SHT_PROGBITS), shdr[1].sh_type); in TYPED_TEST()
340 EXPECT_EQ(static_cast<unsigned int>(SHT_NOBITS), shdr[2].sh_type); in TYPED_TEST()
351 EXPECT_EQ(static_cast<unsigned int>(SHT_STRTAB), shdr[3].sh_type); in TYPED_TEST()
/external/elfutils/backends/
Dia64_symbol.c155 ia64_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_type) in ia64_check_reloc_target_type() argument
157 return sh_type == SHT_IA_64_UNWIND; in ia64_check_reloc_target_type()
Darm_symbol.c130 arm_check_reloc_target_type (Ebl *ebl __attribute__ ((unused)), Elf64_Word sh_type) in arm_check_reloc_target_type() argument
132 return sh_type == SHT_ARM_EXIDX; in arm_check_reloc_target_type()

12345