Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/
H A 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…
H A Drelocation-errors.test20 …: unable to print relocation 0 in SHT_RELA section with index 4: invalid sh_type for symbol table,…
38 …: unable to print relocation 0 in SHT_RELA section with index 4: invalid sh_type for symbol table,…
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELFObjectFile.h480 switch (Sec.sh_type) { in initContent()
540 return getSection(Sec)->sh_type; in getSectionType()
858 if (EShdr->sh_type == ELF::SHT_NOBITS) in getSectionContents()
886 return EShdr->sh_type == ELF::SHT_PROGBITS && in isSectionData()
895 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS()
909 if (Sec.sh_type != ELF::SHT_DYNAMIC) in dynamic_relocation_sections()
977 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_end()
996 uintX_t Type = EShdr->sh_type; in getRelocatedSection()
1017 if (sec->sh_type == ELF::SHT_REL) in getRelocationSymbol()
1034 if (sec->sh_type == ELF::SHT_REL) in getRelocationOffset()
[all …]
H A DELF.h145 Sec.sh_type) + in describe()
327 assert(Shdr.sh_type == ELF::SHT_NOTE && "Shdr is not of type SHT_NOTE"); in notes_begin()
698 if (Sec.sh_type == ELF::SHT_DYNSYM) { in getDynSymtabSize()
777 FakeShdr.sh_type = ELF::SHT_PROGBITS; in createFakeSections()
1082 if (Section.sh_type != ELF::SHT_STRTAB) in getStringTable()
1087 getHeader().e_machine, Section.sh_type))) in getStringTable()
1117 assert(Section.sh_type == ELF::SHT_SYMTAB_SHNDX); in getSHNDXTable()
1126 if (SymTable.sh_type != ELF::SHT_SYMTAB && in getSHNDXTable()
1127 SymTable.sh_type != ELF::SHT_DYNSYM) in getSHNDXTable()
1130 object::getELFSectionTypeName(getHeader().e_machine, SymTable.sh_type) + in getSHNDXTable()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A 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()
348 if (Shdr.sh_type != ELF::SHT_GNU_verneed && in printSymbolVersionInfo()
349 Shdr.sh_type != ELF::SHT_GNU_verdef) in printSymbolVersionInfo()
358 if (Shdr.sh_type == ELF::SHT_GNU_verneed) in printSymbolVersionInfo()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DELFLinkGraphBuilder.h248 if (Sec.sh_type == ELF::SHT_SYMTAB) { in prepare()
257 if (Sec.sh_type == ELF::SHT_SYMTAB_SHNDX) { in prepare()
326 if (Sec.sh_type != ELF::SHT_NOBITS) { in graphifySections()
484 if (RelSect.sh_type != ELF::SHT_RELA && RelSect.sh_type != ELF::SHT_REL) in forEachRelocation()
/llvm-project-15.0.7/llvm/lib/Object/
H A DELFObjectFile.cpp683 if (Sec.sh_type != ELF::SHT_LLVM_BB_ADDR_MAP && in readBBAddrMapImpl()
684 Sec.sh_type != ELF::SHT_LLVM_BB_ADDR_MAP_V0) in readBBAddrMapImpl()
715 if (Sec.sh_type == ELF::SHT_GNU_versym) in readDynsymVersionsImpl()
717 else if (Sec.sh_type == ELF::SHT_GNU_verdef) in readDynsymVersionsImpl()
719 else if (Sec.sh_type == ELF::SHT_GNU_verneed) in readDynsymVersionsImpl()
H A DRelocationResolver.cpp788 return Elf32LEObj->getRelSection(R.getRawDataRefImpl())->sh_type; in resolveRelocation()
790 return Elf64LEObj->getRelSection(R.getRawDataRefImpl())->sh_type; in resolveRelocation()
792 return Elf32BEObj->getRelSection(R.getRawDataRefImpl())->sh_type; in resolveRelocation()
794 return Elf64BEObj->getRelSection(R.getRawDataRefImpl())->sh_type; in resolveRelocation()
H A DELF.cpp558 if (Sec.sh_type == ELF::SHT_DYNAMIC) { in dynamicEntries()
666 if (Sec.sh_type == ELF::SHT_LLVM_BB_ADDR_MAP) { in decodeBBAddrMap()
/llvm-project-15.0.7/lld/docs/ELF/
H A Dlinker_script.rst103 When an *OutputSection* *S* has ``(type)``, LLD will set ``sh_type`` or
106 - ``NOLOAD``: set ``sh_type`` to ``SHT_NOBITS``.
108 - ``TYPE=<value>``: set ``sh_type`` to the specified value. ``<value>`` must be
112 When ``sh_type`` is specified, it is an error if an input section in *S* has a
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Delf2yaml.cpp165 if (SymTab->sh_type == ELF::SHT_SYMTAB) { in getUniquedSymbolName()
316 if (Sec.sh_type == ELF::SHT_SYMTAB) { in dump()
318 } else if (Sec.sh_type == ELF::SHT_DYNSYM) { in dump()
320 } else if (Sec.sh_type == ELF::SHT_SYMTAB_SHNDX) { in dump()
565 if ((Shdr->sh_type == ELF::SHT_SYMTAB || Shdr->sh_type == ELF::SHT_DYNSYM) && in dumpPlaceholderSection()
648 GetDumper(Sec.sh_type)) { in dumpSections()
655 if (Sec.sh_type == ELF::SHT_PROGBITS) { in dumpSections()
691 if (Symtab->sh_type == ELF::SHT_SYMTAB) { in dumpSymbols()
783 S.Type = Shdr->sh_type; in dumpCommonSection()
1107 if (Shdr->sh_type == ELF::SHT_REL) { in dumpRelocSection()
[all …]
/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/ELF/
H A DObjectFileELF.cpp1456 if (sheader.sh_type == SHT_MIPS_ABIFLAGS) { in GetSectionHeaderInfo()
1656 switch (H.sh_type) { in GetSectionType()
2335 assert(symtab_hdr->sh_type == SHT_SYMTAB || in ParseSymbolTable()
2336 symtab_hdr->sh_type == SHT_DYNSYM); in ParseSymbolTable()
2529 assert(rel_hdr->sh_type == SHT_RELA || rel_hdr->sh_type == SHT_REL); in ParseTrampolineSymbols()
2601 ELFRelocation rel(rel_hdr->sh_type); in ApplyRelocations()
2697 assert(rel_hdr->sh_type == SHT_RELA || rel_hdr->sh_type == SHT_REL); in RelocateDebugSections()
2895 if (I->sh_type == SHT_RELA || I->sh_type == SHT_REL) { in RelocateSection()
3164 DumpELFSectionHeader_sh_type(s, sh.sh_type); in DumpELFSectionHeader()
3179 switch (sh_type) { in DumpELFSectionHeader_sh_type()
[all …]
H A DELFHeader.h161 elf_word sh_type; ///< Section type. member
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DELFDumper.cpp1859 switch (Sec.sh_type) { in ELFDumper()
2685 if (Sec.sh_type != AttrShType) in printAttributes()
3418 if (Sec.sh_type != ELF::SHT_GROUP) in getGroups()
3588 return Sec.sh_type == ELF::SHT_REL || Sec.sh_type == ELF::SHT_RELA || in isRelocationSec()
3589 Sec.sh_type == ELF::SHT_RELR || Sec.sh_type == ELF::SHT_ANDROID_REL || in isRelocationSec()
4207 if (Sec.sh_type == ELF::SHT_NOBITS) in checkOffsets()
5642 if (S.sh_type != SHT_NOTE) in printNotesHelper()
5846 if (Sec.sh_type != ELF::SHT_RELR && Sec.sh_type != ELF::SHT_ANDROID_RELR) { in forEachRelocationDo()
5857 switch (Sec.sh_type) { in forEachRelocationDo()
6154 if (Sec.sh_type != ELF::SHT_RELA && Sec.sh_type != ELF::SHT_REL) in getSectionAndRelocations()
[all …]
H A DARMEHABIPrinter.h407 if (Sec.sh_type != ELF::SHT_REL || Sec.sh_info != IndexSectionIndex) in FindExceptionTable()
629 if (Sec.sh_type == ELF::SHT_ARM_EXIDX) { in PrintUnwindInformation()
/llvm-project-15.0.7/lld/ELF/
H A DInputFiles.cpp324 if (sec.sh_type == type) in findSection()
531 if (sec.sh_type == SHT_LLVM_CALL_GRAPH_PROFILE) in initializeSections()
533 if (sec.sh_type == SHT_LLVM_ADDRSIG) { in initializeSections()
552 switch (sec.sh_type) { in initializeSections()
618 if (sec.sh_type == SHT_REL || sec.sh_type == SHT_RELA) { in initializeSections()
868 if (sec.sh_type == SHT_ARM_ATTRIBUTES && config->emachine == EM_ARM) { in createInputSection()
892 if (sec.sh_type == SHT_RISCV_ATTRIBUTES && config->emachine == EM_RISCV) { in createInputSection()
914 if (sec.sh_type == SHT_LLVM_DEPENDENT_LIBRARIES && !config->relocatable) { in createInputSection()
1340 switch (sec.sh_type) { in parse()
H A DInputSection.cpp47 if (hdr.sh_type == SHT_NOBITS) in getSectionContents()
93 : InputSectionBase(&file, getFlags(hdr.sh_flags), hdr.sh_type, in InputSectionBase()
134 if (shdr.sh_type == SHT_REL) { in relsOrRelas()
139 assert(shdr.sh_type == SHT_RELA); in relsOrRelas()
/llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/
H A Doverride-shtype.yaml1 ## Check we are able to override the sh_type field for different sections.
/llvm-project-15.0.7/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp289 StrTab.Shdr.sh_type = SHT_STRTAB; in fillStrTabShdr()
302 SymTab.Shdr.sh_type = ShType; in fillSymTabShdr()
318 DynTab.Shdr.sh_type = SHT_DYNAMIC; in fillDynTabShdr()
392 if (Sec.sh_type == SHT_DYNSYM) { in findDynSymHdr()
/llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/
H A Dset-section-type.test22 ## sh_type is a uint32_t. There is no diagnostic for an overflow value.
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp1785 switch (RelocationSection->sh_type) { in getRelocationAddend()
1820 switch (RelocationSection->sh_type) { in getRelocationSymbol()
4001 if (Section.sh_type == ELF::SHT_NULL) in rewriteNoteSections()
4180 if (Section.sh_type == ELF::SHT_NULL) in getOutputSectionName()
4229 if (Section.sh_type == ELF::SHT_NULL) { in getOutputSections()
4256 NewSection.sh_type = ELF::SHT_PROGBITS; in getOutputSections()
4305 if (Section.sh_type == ELF::SHT_NULL) in getOutputSections()
4368 if (Section.sh_type == ELF::SHT_NULL) in getOutputSections()
4420 if (Section.sh_type == ELF::SHT_REL || Section.sh_type == ELF::SHT_RELA) { in patchELFSectionHeaderTable()
4821 if (Section.sh_type == ELF::SHT_DYNSYM) { in patchELFSymTabs()
[all …]
/llvm-project-15.0.7/compiler-rt/lib/hwasan/scripts/
H A Dhwasan_symbolize66 sh_type, = struct.unpack_from('<I', buffer=mv, offset=sh_type_offset)
67 if sh_type != SHT_NOTE:
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp647 To.sh_type = *From->ShType; in overrideFields()
825 SHeader.sh_type = Sec->Type; in initSectionHeaders()
1001 SHeader.sh_type = YAMLSec->Type; in initSymtabSectionHeader()
1003 SHeader.sh_type = IsStatic ? ELF::SHT_SYMTAB : ELF::SHT_DYNSYM; in initSymtabSectionHeader()
1039 SHeader.sh_type = YAMLSec ? YAMLSec->Type : ELF::SHT_STRTAB; in initStrtabSectionHeader()
1097 SHeader.sh_type = YAMLSec ? YAMLSec->Type : ELF::SHT_PROGBITS; in initDWARFSectionHeader()
1158 Ret.push_back({H.sh_offset, H.sh_size, H.sh_type, H.sh_addralign}); in getPhdrFragments()
/llvm-project-15.0.7/llvm/test/tools/obj2yaml/ELF/DWARF/
H A Ddebug-str.yaml10 ## Override the sh_type field.
/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DELF.h933 Elf32_Word sh_type; // Section type (SHT_*) member
947 Elf64_Word sh_type; member

12