reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/Object/ELFObjectFile.h
  753          EShdr->sh_flags & ELF::SHF_ALLOC &&
  760   return EShdr->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE) &&
  800   return getSection(Sec)->sh_flags & ELF::SHF_ALLOC &&
  809          EShdr->sh_flags & ELF::SHF_ALLOC;
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 3131     auto Flags = ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_LINK_ORDER;
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  305     auto *S = C.getELFSection(Section, ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
  375   unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_GROUP;
  480     Flags |= ELF::SHF_ALLOC;
  723                                    ELF::SHF_ALLOC, &NextUniqueID,
  759   unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE;
  838                                           ELF::SHF_ALLOC | ELF::SHF_WRITE);
  841                                           ELF::SHF_ALLOC | ELF::SHF_WRITE);
  846                                         ELF::SHF_WRITE | ELF::SHF_ALLOC);
  848                                         ELF::SHF_WRITE | ELF::SHF_ALLOC);
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
  461     return ELFSectionRef(Section).getFlags() & ELF::SHF_ALLOC;
lib/MC/MCELFStreamer.cpp
  302         ".bss", ELF::SHT_NOBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
lib/MC/MCObjectFileInfo.cpp
  336   unsigned EHSectionFlags = ELF::SHF_ALLOC;
  342                                   ELF::SHF_WRITE | ELF::SHF_ALLOC);
  345                                    ELF::SHF_EXECINSTR | ELF::SHF_ALLOC);
  348                                    ELF::SHF_WRITE | ELF::SHF_ALLOC);
  351       Ctx->getELFSection(".rodata", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
  355                          ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE);
  358       ".tbss", ELF::SHT_NOBITS, ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE);
  361                                         ELF::SHF_ALLOC | ELF::SHF_WRITE);
  365                          ELF::SHF_ALLOC | ELF::SHF_MERGE, 4, "");
  369                          ELF::SHF_ALLOC | ELF::SHF_MERGE, 8, "");
  373                          ELF::SHF_ALLOC | ELF::SHF_MERGE, 16, "");
  377                          ELF::SHF_ALLOC | ELF::SHF_MERGE, 32, "");
  386                                    ELF::SHF_ALLOC);
  474       Ctx->getELFSection(".llvm_stackmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
  477       Ctx->getELFSection(".llvm_faultmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
lib/MC/MCParser/ELFAsmParser.cpp
   94                               ELF::SHF_WRITE | ELF::SHF_ALLOC,
  100                               ELF::SHF_ALLOC, SectionKind::getText());
  105                               ELF::SHF_ALLOC, SectionKind::getBSS());
  109                               ELF::SHF_ALLOC,
  114                               ELF::SHF_ALLOC |
  120                               ELF::SHF_ALLOC |
  126                               ELF::SHF_ALLOC | ELF::SHF_WRITE,
  131                               ELF::SHF_ALLOC |
  137                               ELF::SHF_ALLOC | ELF::SHF_WRITE,
  291       flags |= ELF::SHF_ALLOC;
  350       flags |= ELF::SHF_ALLOC;
  503     Flags |= ELF::SHF_ALLOC;
  506     Flags |= ELF::SHF_ALLOC | ELF::SHF_EXECINSTR;
  512     Flags |= ELF::SHF_ALLOC | ELF::SHF_WRITE;
  515     Flags |= ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_TLS;
lib/MC/MCSectionELF.cpp
   72     if (Flags & ELF::SHF_ALLOC)
   87   if (Flags & ELF::SHF_ALLOC)
lib/ObjectYAML/ELFEmitter.cpp
  577     SHeader.sh_flags = ELF::SHF_ALLOC;
  632     SHeader.sh_flags = ELF::SHF_ALLOC;
lib/ObjectYAML/ELFYAML.cpp
  516   BCase(SHF_ALLOC);
lib/Target/AArch64/AArch64AsmPrinter.cpp
  292         ELF::SHF_EXECINSTR | ELF::SHF_ALLOC | ELF::SHF_GROUP, 0,
lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
  442     ElfNote::SectionName, ELF::SHT_NOTE, ELF::SHF_ALLOC));
lib/Target/ARM/ARMTargetObjectFile.cpp
   48         ELF::SHF_EXECINSTR | ELF::SHF_ALLOC | ELF::SHF_ARM_PURECODE;
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
 1224   SwitchToEHSection(".ARM.extab", ELF::SHT_PROGBITS, ELF::SHF_ALLOC,
 1230                     ELF::SHF_ALLOC | ELF::SHF_LINK_ORDER,
lib/Target/AVR/AVRTargetObjectFile.cpp
   24       Ctx.getELFSection(".progmem.data", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp
   70           if ((Flags & ELF::SHF_ALLOC) && (Flags & ELF::SHF_EXECINSTR))
   77           if ((Flags & ELF::SHF_ALLOC) && (Flags & ELF::SHF_WRITE))
lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
 1477                                                ELF::SHF_ALLOC | ELF::SHF_WRITE);
 1482                                                ELF::SHF_ALLOC | ELF::SHF_WRITE);
lib/Target/Hexagon/HexagonAsmPrinter.cpp
  204         sectionName, ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
  232         ".lita", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
lib/Target/Hexagon/HexagonTargetObjectFile.cpp
  119                                ELF::SHF_WRITE | ELF::SHF_ALLOC |
  123                                ELF::SHF_WRITE | ELF::SHF_ALLOC |
  183                                         ELF::SHF_ALLOC | ELF::SHF_EXECINSTR);
  186                                         ELF::SHF_WRITE | ELF::SHF_ALLOC);
  372                 ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_HEX_GPREL);
  387                                       ELF::SHF_WRITE | ELF::SHF_ALLOC |
  416                 ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_HEX_GPREL);
lib/Target/Hexagon/MCTargetDesc/HexagonMCELFStreamer.cpp
  108         SectionName, ELF::SHT_NOBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
lib/Target/Lanai/LanaiTargetObjectFile.cpp
   34       ".sdata", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
   36                                                ELF::SHF_WRITE | ELF::SHF_ALLOC);
lib/Target/MSP430/MSP430AsmPrinter.cpp
  168     ELF::SHT_PROGBITS, ELF::SHF_ALLOC | ELF::SHF_EXECINSTR);
lib/Target/Mips/AsmParser/MipsAsmParser.cpp
 3327       getContext().getELFSection(".rodata", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
 3379       getContext().getELFSection(".rodata", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
 3462       getContext().getELFSection(".rodata", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
 7802       Section, ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
 7820       Section, Type, ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_MIPS_GPREL);
lib/Target/Mips/MCTargetDesc/MipsOptionRecord.cpp
   38                               ELF::SHF_ALLOC | ELF::SHF_MIPS_NOSTRIP, 1, "");
   56                                               ELF::SHF_ALLOC, 24, "");
lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
 1317       ".MIPS.abiflags", ELF::SHT_MIPS_ABIFLAGS, ELF::SHF_ALLOC, 24, "");
lib/Target/Mips/MipsAsmPrinter.cpp
 1046       ELF::SHF_ALLOC | ELF::SHF_EXECINSTR);
lib/Target/Mips/MipsTargetObjectFile.cpp
   51       ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_MIPS_GPREL);
   54                                                ELF::SHF_WRITE | ELF::SHF_ALLOC |
lib/Target/PowerPC/PPCAsmPrinter.cpp
 1339       ".got2", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC));
 1412       ".opd", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
 1444           ".toc", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
 1447               ".got2", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
lib/Target/RISCV/RISCVTargetObjectFile.cpp
   23       ".sdata", ELF::SHT_PROGBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
   25                                                ELF::SHF_WRITE | ELF::SHF_ALLOC);
lib/Target/X86/X86AsmPrinter.cpp
  573           ".note.gnu.property", ELF::SHT_NOTE, ELF::SHF_ALLOC);
lib/Target/XCore/XCoreTargetObjectFile.cpp
   24                                  ELF::SHF_ALLOC | ELF::SHF_WRITE |
   27                                       ELF::SHF_ALLOC | ELF::SHF_WRITE |
   30                                   ELF::SHF_ALLOC | ELF::SHF_WRITE |
   33                                        ELF::SHF_ALLOC | ELF::SHF_WRITE |
   36                                        ELF::SHF_ALLOC | ELF::SHF_WRITE |
   40       ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::XCORE_SHF_DP_SECTION);
   43                         ELF::SHF_ALLOC | ELF::XCORE_SHF_CP_SECTION);
   46                         ELF::SHF_ALLOC | ELF::XCORE_SHF_CP_SECTION);
   49       ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 4, "");
   52       ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 8, "");
   55       ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 16, "");
   58                         ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::SHF_STRINGS |
   75     Flags |= ELF::SHF_ALLOC;
tools/lld/ELF/AArch64ErrataFix.cpp
  393     : SyntheticSection(SHF_ALLOC | SHF_EXECINSTR, SHT_PROGBITS, 4,
  630     if (!(os->flags & SHF_ALLOC) || !(os->flags & SHF_EXECINSTR))
tools/lld/ELF/ARMErrataFix.cpp
  137     : SyntheticSection(SHF_ALLOC | SHF_EXECINSTR, SHT_PROGBITS, 4,
  512     if (!(os->flags & SHF_ALLOC) || !(os->flags & SHF_EXECINSTR))
tools/lld/ELF/DWARF.cpp
  107     if (dr->section->flags & ELF::SHF_ALLOC)
tools/lld/ELF/Driver.cpp
 1808   Out::elfHeader = make<OutputSection>("", 0, SHF_ALLOC);
tools/lld/ELF/ICF.cpp
  162   if (!s->isLive() || s->keepUnique || !(s->flags & SHF_ALLOC))
tools/lld/ELF/InputFiles.cpp
 1445   auto *section = make<InputSection>(this, SHF_ALLOC | SHF_WRITE, SHT_PROGBITS,
tools/lld/ELF/InputSection.cpp
  907   if (flags & SHF_ALLOC) {
  922   assert(flags & SHF_ALLOC);
 1229   bool isAlloc = flags & SHF_ALLOC;
 1250   bool isAlloc = flags & SHF_ALLOC;
tools/lld/ELF/LinkerScript.cpp
  531   aether = make<OutputSection>("", 0, SHF_ALLOC);
  791   if (sec->flags & SHF_ALLOC)
  806   if (!(sec->flags & SHF_ALLOC))
  814   if ((sec->flags & SHF_ALLOC) && sec->addrExpr)
  930   uint64_t flags = SHF_ALLOC;
  951       sec->flags = flags & ((sec->nonAlloc ? 0 : (uint64_t)SHF_ALLOC) |
 1008       if (sec->flags & SHF_ALLOC)
 1035     if (sec->flags & SHF_ALLOC)
tools/lld/ELF/MarkLive.cpp
  357     bool isAlloc = (sec->flags & SHF_ALLOC);
tools/lld/ELF/OutputSections.cpp
  144     flags &= ~(uint64_t)SHF_ALLOC;
  261   if (!config->compressDebugSections || (flags & SHF_ALLOC) ||
tools/lld/ELF/Relocations.cpp
 1443     if (!(os->flags & SHF_ALLOC) || !(os->flags & SHF_EXECINSTR))
tools/lld/ELF/ScriptParser.cpp
 1502       flag = SHF_ALLOC;
tools/lld/ELF/SyntheticSections.cpp
   92     : SyntheticSection(SHF_ALLOC, SHT_MIPS_ABIFLAGS, 8, ".MIPS.abiflags"),
  151     : SyntheticSection(SHF_ALLOC, SHT_MIPS_OPTIONS, 8, ".MIPS.options"),
  212     : SyntheticSection(SHF_ALLOC, SHT_MIPS_REGINFO, 4, ".reginfo"),
  259   return make<InputSection>(nullptr, SHF_ALLOC, SHT_PROGBITS, 1, contents,
  301     : SyntheticSection(llvm::ELF::SHF_ALLOC, llvm::ELF::SHT_NOTE, 4,
  323     : SyntheticSection(SHF_ALLOC, SHT_NOTE, 4, ".note.gnu.build-id"),
  340     : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_NOBITS, alignment, name) {
  346     : SyntheticSection(SHF_ALLOC, SHT_PROGBITS, 1, ".eh_frame") {}
  600     : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS, config->wordsize,
  668     : SyntheticSection(SHF_ALLOC | SHF_WRITE | SHF_MIPS_GPREL, SHT_PROGBITS, 16,
 1084     : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS, config->wordsize,
 1134     : SyntheticSection(SHF_ALLOC | SHF_WRITE,
 1155     : SyntheticSection(dynamic ? (uint64_t)SHF_ALLOC : 0, SHT_STRTAB, 1, name),
 1194     : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_DYNAMIC, config->wordsize,
 1203     this->flags = SHF_ALLOC;
 1531     : SyntheticSection(SHF_ALLOC, type, config->wordsize, name),
 1575     : SyntheticSection(SHF_ALLOC,
 1969     : SyntheticSection(strTabSec.isDynamic() ? (uint64_t)SHF_ALLOC : 0,
 2270     : SyntheticSection(SHF_ALLOC, SHT_GNU_HASH, config->wordsize, ".gnu.hash") {
 2403     : SyntheticSection(SHF_ALLOC, SHT_HASH, 4, ".hash") {
 2450           SHF_ALLOC | SHF_EXECINSTR, SHT_PROGBITS, 16,
 2807     : SyntheticSection(SHF_ALLOC, SHT_PROGBITS, 4, ".eh_frame_hdr") {}
 2853     : SyntheticSection(SHF_ALLOC, SHT_GNU_verdef, sizeof(uint32_t),
 2915     : SyntheticSection(SHF_ALLOC, SHT_GNU_versym, sizeof(uint16_t),
 2964     : SyntheticSection(SHF_ALLOC, SHT_GNU_verneed, sizeof(uint32_t),
 3146     : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS, config->wordsize,
 3150     : SyntheticSection(SHF_ALLOC | SHF_LINK_ORDER, SHT_ARM_EXIDX,
 3161   return (isec->flags & SHF_ALLOC) && (isec->flags & SHF_EXECINSTR) &&
 3354     : SyntheticSection(SHF_ALLOC | SHF_EXECINSTR, SHT_PROGBITS,
 3392     : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS, 4, ".got2") {}
 3427     : SyntheticSection(SHF_ALLOC | SHF_WRITE,
 3532     : SyntheticSection(SHF_ALLOC, SHT_LLVM_PART_EHDR, 1, "") {}
 3550     : SyntheticSection(SHF_ALLOC, SHT_LLVM_PART_PHDR, 1, ".phdrs") {}
 3563     : SyntheticSection(SHF_ALLOC, SHT_PROGBITS, 4, ".rodata") {}
tools/lld/ELF/Writer.cpp
  159       if (!(s->flags & SHF_ALLOC) || !s->isLive())
  331   Out::programHeaders = make<OutputSection>("", 0, SHF_ALLOC);
  752   if (!(flags & SHF_ALLOC) || !(flags & SHF_WRITE))
  852   if (!(sec->flags & SHF_ALLOC))
 1021     if (isec->isLive() && isa<InputSection>(isec) && (isec->flags & SHF_ALLOC))
 2021   if (!(sec->flags & SHF_ALLOC) || sec->noload)
 2111     if (!(sec->flags & SHF_ALLOC))
 2197     if (sec->type == SHT_NOTE && (sec->flags & SHF_ALLOC)) {
 2327     if (sec->flags & SHF_ALLOC)
 2476         (!config->oFormatBinary || (sec->flags & SHF_ALLOC)))
 2493     if (sec->size > 0 && (sec->flags & SHF_ALLOC) && !(sec->flags & SHF_TLS))
 2502     if (sec->size > 0 && (sec->flags & SHF_ALLOC) && !(sec->flags & SHF_TLS))
 2611     if (sec->flags & SHF_ALLOC)
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
  667         if (section_sp->Test(SHF_ALLOC) ||
 1637   if (H.sh_flags & SHF_ALLOC)
 1684     addr_t Size = H.sh_flags & SHF_ALLOC ? H.sh_size : 0;
 1685     if (ObjectType == ObjectFile::Type::eTypeObjectFile && Segments.empty() && (H.sh_flags & SHF_ALLOC)) {
 1721     if ((H.sh_flags & SHF_ALLOC) && It.valid()) {
 2186                                     symbol.st_size, 0, 0, 0, SHF_ALLOC);
 3158      << (((sh_flags & SHF_WRITE) && (sh_flags & SHF_ALLOC)) ? '+' : ' ')
 3159      << ((sh_flags & SHF_ALLOC) ? "ALLOC" : "     ")
 3160      << (((sh_flags & SHF_ALLOC) && (sh_flags & SHF_EXECINSTR)) ? '+' : ' ')
tools/llvm-nm/llvm-nm.cpp
  917     if (Flags & ELF::SHF_ALLOC)
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
   77     NewFlags |= ELF::SHF_ALLOC;
  107       (!(Sec.Flags & ELF::SHF_ALLOC) ||
  463       if ((Sec.Flags & SHF_ALLOC) != 0)
  495       return (Sec.Flags & SHF_ALLOC) == 0 && Sec.ParentSegment == nullptr;
  508       return (Sec.Flags & SHF_ALLOC) == 0;
  517       return (Sec.Flags & SHF_ALLOC) != 0 && !Sec.ParentSegment;
  634       if (Sec.Flags & SHF_ALLOC) {
  646         if (TargetSec && (TargetSec->Flags & SHF_ALLOC)) {
tools/llvm-objcopy/ELF/Object.cpp
 1066     if (!(Sec.Flags & SHF_ALLOC))
 1155   DataSection.Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE;
 1203             ELF::SHF_ALLOC | ELF::SHF_WRITE, SecNo);
 1446     if (Shdr.sh_flags & SHF_ALLOC) {
 1455     if (Shdr.sh_flags & SHF_ALLOC) {
 1547       if (Sec.Type == ELF::SHT_STRTAB && !(Sec.Flags & SHF_ALLOC)) {
 2259     return (Sec.Flags & ELF::SHF_ALLOC) && (Sec.Type != ELF::SHT_NOBITS);
tools/llvm-objcopy/ELF/Object.h
  580     if (S->Flags & ELF::SHF_ALLOC)
  765     if (S->Flags & ELF::SHF_ALLOC)
  841     if (!(S->Flags & ELF::SHF_ALLOC))
  994     return Sec.Flags & ELF::SHF_ALLOC;
tools/llvm-objdump/llvm-objdump.cpp
 1027     return ELFSectionRef(Section).getFlags() & ELF::SHF_ALLOC;
 2106     if (ELFSectionRef(Section).getFlags() & ELF::SHF_ALLOC) {
tools/llvm-readobj/ELFDumper.cpp
 1133   ENUM_ENT(SHF_ALLOC,            "A"),
 1183     case ELF::SHF_ALLOC:
 3506   if (!(Sec.sh_flags & ELF::SHF_ALLOC))
 3528          (!(Sec.sh_flags & ELF::SHF_ALLOC) ||