Home
last modified time | relevance | path

Searched refs:sh_flags (Results 1 – 25 of 27) sorted by relevance

12

/llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/ELF/
H A DObjectFileELF.cpp1658 if (H.sh_flags & SHF_EXECINSTR) in GetSectionType()
1688 if (H.sh_flags & SHF_ALLOC) in GetPermissions()
1690 if (H.sh_flags & SHF_WRITE) in GetPermissions()
1692 if (H.sh_flags & SHF_EXECINSTR) in GetPermissions()
1772 if ((H.sh_flags & SHF_ALLOC) && It.valid()) { in GetAddressInfo()
3165 s->Printf(" %8.8" PRIx64 " (", sh.sh_flags); in DumpELFSectionHeader()
3166 DumpELFSectionHeader_sh_flags(s, sh.sh_flags); in DumpELFSectionHeader()
3207 *s << ((sh_flags & SHF_WRITE) ? "WRITE" : " ") in DumpELFSectionHeader_sh_flags()
3208 << (((sh_flags & SHF_WRITE) && (sh_flags & SHF_ALLOC)) ? '+' : ' ') in DumpELFSectionHeader_sh_flags()
3209 << ((sh_flags & SHF_ALLOC) ? "ALLOC" : " ") in DumpELFSectionHeader_sh_flags()
[all …]
H A DELFHeader.h162 elf_xword sh_flags; ///< Section attributes. member
H A DELFHeader.cpp234 if (!GetMaxU64(data, offset, &sh_flags, byte_size)) in Parse()
H A DObjectFileELF.h376 elf::elf_xword sh_flags);
/llvm-project-15.0.7/llvm/include/llvm/Object/
H A DELFObjectFile.h535 return getSection(Sec)->sh_flags; in getSectionFlags()
875 return getSection(Sec)->sh_flags & ELF::SHF_COMPRESSED; in isSectionCompressed()
880 return getSection(Sec)->sh_flags & ELF::SHF_EXECINSTR; in isSectionText()
887 EShdr->sh_flags & ELF::SHF_ALLOC && in isSectionData()
888 !(EShdr->sh_flags & ELF::SHF_EXECINSTR); in isSectionData()
894 return EShdr->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE) && in isSectionBSS()
934 return getSection(Sec)->sh_flags & ELF::SHF_ALLOC && in isBerkeleyText()
935 (getSection(Sec)->sh_flags & ELF::SHF_EXECINSTR || in isBerkeleyText()
936 !(getSection(Sec)->sh_flags & ELF::SHF_WRITE)); in isBerkeleyText()
943 EShdr->sh_flags & ELF::SHF_ALLOC; in isBerkeleyData()
H A DELFTypes.h152 Elf_Word sh_flags; // Section flags (SHF_*)
167 Elf_Xword sh_flags; // Section flags (SHF_*)
/llvm-project-15.0.7/lld/test/ELF/
H A Dmerge-entsize2.s12 ## Check that SHF_MERGE sections with the same name, sh_flags and sh_entsize
/llvm-project-15.0.7/lld/ELF/
H A DDWARF.cpp60 !(objSections[it.index()].sh_flags & ELF::SHF_GROUP)) { in LLDDwarfObj()
H A DInputFiles.cpp433 if (sec.sh_flags & SHF_WRITE) in shouldMerge()
530 if ((sec.sh_flags & SHF_EXCLUDE) && !config->relocatable) { in initializeSections()
663 if (!sec.sh_link || !(sec.sh_flags & SHF_LINK_ORDER)) in initializeSections()
998 if ((sec.sh_flags & SHF_MERGE) && shouldMerge(sec, name)) in createInputSection()
H A DOutputSections.cpp62 shdr->sh_flags = flags; in writeHeaderTo()
/llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/
H A Doverride-shflags.yaml1 ## Check we are able to set custom sh_flags field
/llvm-project-15.0.7/llvm/lib/ObjectYAML/
H A DELFEmitter.cpp639 To.sh_flags = *From->ShFlags; in overrideFields()
827 SHeader.sh_flags = *Sec->Flags; in initSectionHeaders()
920 !(SHeader.sh_flags & ELF::SHF_ALLOC)) in assignSectionAddress()
1006 SHeader.sh_flags = *YAMLSec->Flags; in initSymtabSectionHeader()
1008 SHeader.sh_flags = ELF::SHF_ALLOC; in initSymtabSectionHeader()
1060 SHeader.sh_flags = *YAMLSec->Flags; in initStrtabSectionHeader()
1062 SHeader.sh_flags = ELF::SHF_ALLOC; in initStrtabSectionHeader()
1126 SHeader.sh_flags = *YAMLSec->Flags; in initDWARFSectionHeader()
1128 SHeader.sh_flags = ELF::SHF_MERGE | ELF::SHF_STRINGS; in initDWARFSectionHeader()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/JITLink/
H A DELFLinkGraphBuilder.h298 if (!(Sec.sh_flags & ELF::SHF_ALLOC)) { in graphifySections()
314 if (Sec.sh_flags & ELF::SHF_EXECINSTR) in graphifySections()
/llvm-project-15.0.7/lld/docs/ELF/
H A Dlinker_script.rst104 ``sh_flags`` of *S*. ``type`` is one of:
107 - ``COPY``, ``INFO``, ``OVERLAY``: clear the ``SHF_ALLOC`` bit in ``sh_flags``.
/llvm-project-15.0.7/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp290 StrTab.Shdr.sh_flags = ShFlags; in fillStrTabShdr()
303 SymTab.Shdr.sh_flags = SHF_ALLOC; in fillSymTabShdr()
319 DynTab.Shdr.sh_flags = SHF_ALLOC; in fillDynTabShdr()
/llvm-project-15.0.7/llvm/test/tools/obj2yaml/ELF/DWARF/
H A Ddebug-str.yaml15 ## Override the sh_flags field.
H A Ddebug-addr.yaml102 ## Override the sh_flags field.
H A Ddebug-ranges.yaml163 ## Override the sh_flags field.
/llvm-project-15.0.7/llvm/include/llvm/BinaryFormat/
H A DELF.h934 Elf32_Word sh_flags; // Section flags (SHF_*) member
948 Elf64_Xword sh_flags; member
/llvm-project-15.0.7/llvm/lib/ObjCopy/ELF/
H A DELFObject.cpp73 Shdr.sh_flags = Sec.Flags; in writeShdr()
1644 if (Shdr.sh_flags & SHF_ALLOC) { in makeSection()
1655 if (Shdr.sh_flags & SHF_ALLOC) { in makeSection()
1706 if (!(Shdr.sh_flags & ELF::SHF_COMPRESSED)) in makeSection()
1736 Sec->Flags = Sec->OriginalFlags = Shdr.sh_flags; in readSectionHeaders()
2010 Shdr.sh_flags = 0; in writeShdrs()
/llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/DWARF/
H A Ddebug-str.yaml13 ## Check the default sh_type, sh_entsize, sh_info, sh_flags and sh_addralign of the
/llvm-project-15.0.7/bolt/lib/Rewrite/
H A DRewriteInstance.cpp4003 if (Section.sh_flags & ELF::SHF_ALLOC) in rewriteNoteSections()
4186 if ((Section.sh_flags & ELF::SHF_ALLOC) && willOverwriteSection(SectionName)) in getOutputSectionName()
4196 if (!(Section.sh_flags & ELF::SHF_ALLOC) && Section.sh_type == ELF::SHT_RELA) in shouldStrip()
4234 if (!(Section.sh_flags & ELF::SHF_ALLOC)) in getOutputSections()
4261 NewSection.sh_flags = Section.getELFFlags(); in getOutputSections()
4283 if (Section.sh_type == ELF::SHT_NOBITS && (Section.sh_flags & ELF::SHF_TLS)) in getOutputSections()
4307 if (Section.sh_flags & ELF::SHF_ALLOC) in getOutputSections()
4346 NewSection.sh_flags = Section.getELFFlags(); in getOutputSections()
4583 if (!((*Section)->sh_flags & ELF::SHF_ALLOC)) in updateELFSymbolTable()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/
H A DDebugObjectManagerPlugin.cpp80 return Header->sh_flags & (ELF::SHF_EXECINSTR | ELF::SHF_ALLOC); in isTextOrDataSection()
/llvm-project-15.0.7/llvm/tools/llvm-readobj/
H A DELFDumper.cpp3734 this->Obj.getHeader().e_machine, Sec.sh_flags); in printSectionHeaders()
4133 OS << "[" << to_string(format_hex_no_prefix(S.sh_flags, AddrSize)) << "]: "; in printSectionDetails()
4143 uint64_t Flags = S.sh_flags; in printSectionDetails()
4188 if (Sec.sh_flags & ELF::SHF_TLS) { in checkTLSSections()
4224 if (!(Sec.sh_flags & ELF::SHF_ALLOC)) in checkVMA()
4231 (Sec.sh_type == ELF::SHT_NOBITS) && ((Sec.sh_flags & ELF::SHF_TLS) != 0); in checkVMA()
4252 bool CheckVA = !(Sec.sh_flags & ELF::SHF_ALLOC) || in checkPTDynamic()
6630 W.printFlags("Flags", Sec.sh_flags, makeArrayRef(FlagsList)); in printSectionHeaders()
/llvm-project-15.0.7/llvm/tools/obj2yaml/
H A Delf2yaml.cpp784 if (Shdr->sh_flags) in dumpCommonSection()
785 S.Flags = static_cast<ELFYAML::ELF_SHF>(Shdr->sh_flags); in dumpCommonSection()

12