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

References

tools/lld/ELF/AArch64ErrataFix.cpp
  451         if (sec->flags & SHF_EXECINSTR)
  630     if (!(os->flags & SHF_ALLOC) || !(os->flags & SHF_EXECINSTR))
  630     if (!(os->flags & SHF_ALLOC) || !(os->flags & SHF_EXECINSTR))
tools/lld/ELF/ARMErrataFix.cpp
  328         if (sec->flags & SHF_EXECINSTR)
  512     if (!(os->flags & SHF_ALLOC) || !(os->flags & SHF_EXECINSTR))
  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
 1453       if (config->icf == ICFLevel::Safe || !(d->section->flags & SHF_EXECINSTR))
tools/lld/ELF/ICF.cpp
  162   if (!s->isLive() || s->keepUnique || !(s->flags & SHF_ALLOC))
  167   if ((s->flags & SHF_WRITE) && s->name != ".data.rel.ro" &&
  173   if (s->flags & SHF_LINK_ORDER)
  304   if (a->numRelocations != b->numRelocations || a->flags != b->flags ||
  304   if (a->numRelocations != b->numRelocations || a->flags != b->flags ||
tools/lld/ELF/InputFiles.cpp
  785   return make<InputSection>(sec->file, sec->flags, sec->type, sec->alignment,
tools/lld/ELF/InputSection.cpp
  237   assert(flags & SHF_COMPRESSED);
  238   flags &= ~(uint64_t)SHF_COMPRESSED;
  278   assert(flags & SHF_LINK_ORDER);
  904   if (flags & SHF_EXECINSTR)
  907   if (flags & SHF_ALLOC) {
  922   assert(flags & SHF_ALLOC);
 1229   bool isAlloc = flags & SHF_ALLOC;
 1250   bool isAlloc = flags & SHF_ALLOC;
 1277   if (flags & SHF_STRINGS)
tools/lld/ELF/LinkerScript.cpp
  350       sections, [](InputSectionBase *sec) { return sec->flags & SHF_WRITE; });
  579   if (isec->type == SHT_GROUP || (isec->flags & SHF_GROUP))
  649     if (config->relocatable && (isec->flags & SHF_LINK_ORDER)) {
  698         if (depSec->flags & SHF_LINK_ORDER)
  710     if (config->relocatable && (isec->flags & SHF_LINK_ORDER))
  732       (ctx->outSec->flags & SHF_TLS) && ctx->outSec->type == SHT_NOBITS;
  786     if ((m->flags & sec->flags) && (m->negFlags & sec->flags) == 0)
  786     if ((m->flags & sec->flags) && (m->negFlags & sec->flags) == 0)
  791   if (sec->flags & SHF_ALLOC)
  806   if (!(sec->flags & SHF_ALLOC))
  814   if ((sec->flags & SHF_ALLOC) && sec->addrExpr)
  945       flags = sec->flags;
  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
  107     if (!isLSDA || !(relSec->flags & SHF_EXECINSTR))
  257     if (sec->flags & SHF_LINK_ORDER)
  357     bool isAlloc = (sec->flags & SHF_ALLOC);
  358     bool isLinkOrder = (sec->flags & SHF_LINK_ORDER);
tools/lld/ELF/OutputSections.cpp
   46   if (config->emachine != EM_ARM || !(flags & SHF_ARM_PURECODE))
   48   if (flags & SHF_WRITE)
   50   if (flags & SHF_EXECINSTR)
   61   shdr->sh_flags = flags;
  114     flags = isec->flags;
  114     flags = isec->flags;
  118     if ((flags & mask) != (isec->flags & mask))
  118     if ((flags & mask) != (isec->flags & mask))
  120             ": 0x" + utohexstr(isec->flags) + "\n>>> output section " + name +
  121             ": 0x" + utohexstr(flags));
  140   uint64_t andFlags = (flags & isec->flags) & andMask;
  140   uint64_t andFlags = (flags & isec->flags) & andMask;
  141   uint64_t orFlags = (flags | isec->flags) & orMask;
  141   uint64_t orFlags = (flags | isec->flags) & orMask;
  142   flags = andFlags | orFlags;
  144     flags &= ~(uint64_t)SHF_ALLOC;
  192         return sec->flags == ms->flags && sec->entsize == ms->entsize &&
  192         return sec->flags == ms->flags && sec->entsize == ms->entsize &&
  193                (sec->alignment == ms->alignment || !(sec->flags & SHF_STRINGS));
  197             createMergeSynthetic(name, ms->type, ms->flags, ms->alignment);
  261   if (!config->compressDebugSections || (flags & SHF_ALLOC) ||
  280   flags |= SHF_COMPRESSED;
  358   if (flags & SHF_LINK_ORDER) {
  385   flags |= SHF_INFO_LINK;
  486   if (flags & SHF_EXECINSTR)
tools/lld/ELF/Relocations.cpp
 1043   bool canWrite = (sec.flags & SHF_WRITE) || !config->zText;
 1443     if (!(os->flags & SHF_ALLOC) || !(os->flags & SHF_EXECINSTR))
 1443     if (!(os->flags & SHF_ALLOC) || !(os->flags & SHF_EXECINSTR))
tools/lld/ELF/SyntheticSections.cpp
 1203     this->flags = SHF_ALLOC;
 2459     this->flags |= SHF_WRITE;
 3033   assert(alignment == ms->alignment || !(ms->flags & SHF_STRINGS));
 3161   return (isec->flags & SHF_ALLOC) && (isec->flags & SHF_EXECINSTR) &&
 3161   return (isec->flags & SHF_ALLOC) && (isec->flags & SHF_EXECINSTR) &&
tools/lld/ELF/Writer.cpp
  159       if (!(s->flags & SHF_ALLOC) || !s->isLive())
  649   return !sec || !(sec->flags & SHF_MERGE);
  725     if (isa<SyntheticSection>(isec) && !(isec->flags & SHF_MERGE))
  745   uint64_t flags = sec->flags;
  852   if (!(sec->flags & SHF_ALLOC))
  888   bool isExec = sec->flags & SHF_EXECINSTR;
  889   bool isWrite = sec->flags & SHF_WRITE;
  920   if (!(sec->flags & SHF_TLS))
  957     if (sec->flags & SHF_MIPS_GPREL)
 1021     if (isec->isLive() && isa<InputSection>(isec) && (isec->flags & SHF_ALLOC))
 1107       if (os->flags & SHF_MIPS_GPREL) {
 1508     if (!(sec->flags & SHF_LINK_ORDER))
 1958     if (os->flags & SHF_EXECINSTR)
 1960         if (!(isec->flags & SHF_EXECINSTR))
 2021   if (!(sec->flags & SHF_ALLOC) || sec->noload)
 2027   if ((sec->flags & SHF_TLS) && sec->type == SHT_NOBITS)
 2111     if (!(sec->flags & SHF_ALLOC))
 2152     if (sec->partition == partNo && sec->flags & SHF_TLS)
 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))
 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))
 2502     if (sec->size > 0 && (sec->flags & SHF_ALLOC) && !(sec->flags & SHF_TLS))
 2611     if (sec->flags & SHF_ALLOC)