Home
last modified time | relevance | path

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

1234567

/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 (&ehdr, sh_type, 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.c363 Elf64_Word sh_type; in elf_compress() local
372 sh_type = shdr->sh_type; in elf_compress()
382 sh_type = shdr->sh_type; in elf_compress()
392 if (sh_type == SHT_NULL || sh_type == SHT_NOBITS) in elf_compress()
525 __libelf_data_type (&ehdr, sh_type, in elf_compress()
Delf32_getchdr.c57 if (shdr->sh_type == SHT_NULL in ElfW2()
58 || shdr->sh_type == SHT_NOBITS) 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/libabigail/src/
Dabg-elf-helpers.cc322 if (header == NULL || header->sh_type != section_type) in find_section()
354 if (header->sh_type == SHT_DYNSYM) in find_symbol_table_section()
356 else if (header->sh_type == SHT_SYMTAB) in find_symbol_table_section()
422 if (section_header->sh_type != SHT_HASH in find_hash_table_section_index()
423 && section_header->sh_type != SHT_GNU_HASH) in find_hash_table_section_index()
429 if (section_header->sh_type == SHT_HASH) in find_hash_table_section_index()
431 else if (section_header->sh_type == SHT_GNU_HASH) in find_hash_table_section_index()
527 if (h->sh_type == SHT_GNU_versym) in get_symbol_versionning_sections()
529 else if (h->sh_type == SHT_GNU_verdef) in get_symbol_versionning_sections()
531 else if (h->sh_type == SHT_GNU_verneed) in get_symbol_versionning_sections()
[all …]
/external/llvm-project/llvm/test/tools/llvm-readobj/ELF/
Dwrong-shstrtab-type.test10 # LLVM: warning: '[[FILE]]': invalid sh_type for string table section [index 1]: expected SHT_STRTA…
17 # GNU: warning: '[[FILE]]': invalid sh_type for string table section [index 1]: expected SHT_STRTAB…
28 # WARNINGS: warning: '{{.*}}1': invalid sh_type for string table section [index 1]: expected SHT_ST…
29 # WARNINGS: warning: '{{.*}}2': invalid sh_type for string table section [index 1]: expected SHT_ST…
30 # WARNINGS: warning: '{{.*}}1': invalid sh_type for string table section [index 1]: expected SHT_ST…
/external/elfutils/src/
Dstrip.c392 if (shdr != NULL && shdr->sh_type == SHT_SYMTAB) in get_xndxdata()
402 && xndxshdr->sh_type == SHT_SYMTAB_SHNDX in get_xndxdata()
581 if (shdr->sh_type == SHT_REL || shdr->sh_type == SHT_RELA) in remove_debug_relocations()
589 if (tshdr->sh_type == SHT_NOBITS in remove_debug_relocations()
646 const bool is_rela = (shdr->sh_type == SHT_RELA); in remove_debug_relocations()
889 GElf_Off filesz = (shdr.sh_type != SHT_NOBITS in handle_debug_relocs()
931 GElf_Off filesz = (shdr.sh_type != SHT_NOBITS in handle_debug_relocs()
1286 if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_SYMTAB_SHNDX)) in handle_elf()
1291 else if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_GROUP)) in handle_elf()
1320 else if (unlikely (shdr_info[cnt].shdr.sh_type == SHT_GNU_versym)) in handle_elf()
[all …]
Dunstrip.c367 switch (shdr->sh_type) in section_can_shrink()
453 switch (shdr->sh_type) in adjust_relocs()
612 if (shdr->sh_type != SHT_NOBITS && shdr->sh_type != SHT_GROUP in adjust_all_relocs()
965 Elf64_Word sh_type) in sections_flags_match() argument
967 if (sh_type == SHT_REL || sh_type == SHT_RELA) in sections_flags_match()
982 sections[i].shdr.sh_type) in sections_match()
1033 if (shdr->sh_type != SHT_GROUP) in get_group_sig()
1082 if (sec->shdr.sh_type == SHT_PROGBITS in find_alloc_sections_prelink()
1171 COPY (sh_type); in find_alloc_sections_prelink()
1267 && (((sec->shdr.sh_type == undo_sec->shdr.sh_type in find_alloc_sections_prelink()
[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()
1062 && shdr->sh_type == SHT_DYNSYM) in check_symtab()
1098 if (rcshdr->sh_type == SHT_DYNAMIC && rcshdr->sh_entsize != 0) in is_rel_dyn()
1266 if(! ebl_check_reloc_target_type (ebl, (*destshdrp)->sh_type)) in check_reloc_shdr()
1327 if (dynshdr != NULL && dynshdr->sh_type == SHT_DYNAMIC in check_reloc_shdr()
1661 if (strshdr != NULL && strshdr->sh_type != SHT_STRTAB) in check_dynamic()
1943 if (symshdr != NULL && symshdr->sh_type != SHT_SYMTAB) in check_symtab_shndx()
1977 if (rshdr != NULL && rshdr->sh_type == SHT_SYMTAB_SHNDX in check_symtab_shndx()
[all …]
/external/llvm-project/llvm/include/llvm/Object/
DELFObjectFile.h327 assert(SymTable->sh_type == ELF::SHT_SYMTAB || in toDRI()
328 SymTable->sh_type == ELF::SHT_DYNSYM); in toDRI()
380 if (Sec.sh_type == ELF::SHT_ARM_ATTRIBUTES || in getBuildAttributes()
381 Sec.sh_type == ELF::SHT_RISCV_ATTRIBUTES) { in getBuildAttributes()
477 switch (Sec.sh_type) { in initContent()
535 return getSection(Sec)->sh_type; in getSectionType()
807 if (EShdr->sh_type == ELF::SHT_NOBITS) in getSectionContents()
835 return EShdr->sh_type == ELF::SHT_PROGBITS && in isSectionData()
844 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS()
858 if (Sec.sh_type != ELF::SHT_DYNAMIC) in dynamic_relocation_sections()
[all …]
/external/elfutils/tests/
Delfcopy.c208 GElf_Shdr last_shdr = { .sh_type = SHT_NULL }; in copy_elf()
223 if (last_shdr.sh_type != SHT_NULL in copy_elf()
226 && last_shdr.sh_type != SHT_NOBITS in copy_elf()
227 && shdr.sh_type != SHT_NOBITS in copy_elf()
238 last_shdr.sh_type = SHT_NULL; in copy_elf()
Dupdate4.c132 shdr->sh_type = SHT_PROGBITS; in main()
168 shdr->sh_type = SHT_PROGBITS; in main()
204 shdr->sh_type = SHT_PROGBITS; in main()
240 shdr->sh_type = SHT_NOBITS; in main()
277 shdr->sh_type = SHT_STRTAB; in main()
/external/elfutils/backends/
Dx86_64_symbol.c78 Elf64_Word sh_type) in x86_64_check_reloc_target_type() argument
80 return sh_type == SHT_X86_64_UNWIND; in x86_64_check_reloc_target_type()
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()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DELFObjectFile.h321 assert(SymTable->sh_type == ELF::SHT_SYMTAB || in toDRI()
322 SymTable->sh_type == ELF::SHT_DYNSYM); in toDRI()
374 if (Sec.sh_type == ELF::SHT_ARM_ATTRIBUTES) { in getBuildAttributes()
489 return getSection(Sec)->sh_type; in getSectionType()
726 if (EShdr->sh_type == ELF::SHT_NOBITS) in getSectionContents()
754 return EShdr->sh_type == ELF::SHT_PROGBITS && in isSectionData()
763 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS()
777 if (Sec.sh_type != ELF::SHT_DYNAMIC) in dynamic_relocation_sections()
797 return getSection(Sec)->sh_type == ELF::SHT_NOBITS; in isSectionVirtual()
810 return !isBerkeleyText(Sec) && EShdr->sh_type != ELF::SHT_NOBITS && in isBerkeleyData()
[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/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 …]
/external/llvm-project/llvm/lib/ExecutionEngine/JITLink/
DELF_x86_64.cpp262 if (SecRef.sh_type != ELF::SHT_SYMTAB && in createNormalizedSymbols()
263 SecRef.sh_type != ELF::SHT_DYNSYM) in createNormalizedSymbols()
339 if (SecRef.sh_type != ELF::SHT_NOBITS) { in createNormalizedSections()
353 if (SecRef.sh_type == ELF::SHT_SYMTAB) in createNormalizedSections()
370 if (SecRef.sh_type != ELF::SHT_RELA && SecRef.sh_type != ELF::SHT_REL) in addRelocations()
373 if (SecRef.sh_type == ELF::SHT_REL) in addRelocations()
464 if (SecRef.sh_type != ELF::SHT_SYMTAB && in graphifyRegularSymbols()
465 SecRef.sh_type != ELF::SHT_DYNSYM) in graphifyRegularSymbols()
/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/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()
/external/llvm-project/llvm/tools/llvm-objdump/
DELFDump.cpp48 if (Sec.sh_type == ELF::SHT_DYNSYM) in getDynamicStrTab()
73 if ((*SecOrErr)->sh_type == ELF::SHT_RELA) { in getRelocationValueString()
77 } else if ((*SecOrErr)->sh_type != ELF::SHT_REL) { in getRelocationValueString()
336 if (Shdr.sh_type != ELF::SHT_GNU_verneed && in printSymbolVersionInfo()
337 Shdr.sh_type != ELF::SHT_GNU_verdef) in printSymbolVersionInfo()
346 if (Shdr.sh_type == ELF::SHT_GNU_verneed) in printSymbolVersionInfo()

1234567