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

References

include/llvm/Object/ELFObjectFile.h
  760   return EShdr->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE) &&
  802           !(getSection(Sec)->sh_flags & ELF::SHF_WRITE));
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 3131     auto Flags = ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_LINK_ORDER;
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
  375   unsigned Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_GROUP;
  489     Flags |= ELF::SHF_WRITE;
  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
  485              (ELF::SHF_WRITE | ELF::SHF_EXECINSTR));
lib/MC/MCELFStreamer.cpp
  302         ".bss", ELF::SHT_NOBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
lib/MC/MCObjectFileInfo.cpp
  338     EHSectionFlags |= ELF::SHF_WRITE;
  342                                   ELF::SHF_WRITE | ELF::SHF_ALLOC);
  348                                    ELF::SHF_WRITE | 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);
lib/MC/MCParser/ELFAsmParser.cpp
   94                               ELF::SHF_WRITE | ELF::SHF_ALLOC,
  104                               ELF::SHF_WRITE |
  115                               ELF::SHF_TLS | ELF::SHF_WRITE,
  121                               ELF::SHF_TLS | ELF::SHF_WRITE,
  126                               ELF::SHF_ALLOC | ELF::SHF_WRITE,
  132                               ELF::SHF_WRITE,
  137                               ELF::SHF_ALLOC | ELF::SHF_WRITE,
  300       flags |= ELF::SHF_WRITE;
  354       flags |= ELF::SHF_WRITE;
  512     Flags |= ELF::SHF_ALLOC | ELF::SHF_WRITE;
  515     Flags |= ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_TLS;
lib/MC/MCSectionELF.cpp
   76     if (Flags & ELF::SHF_WRITE)
   95   if (Flags & ELF::SHF_WRITE)
lib/ObjectYAML/ELFYAML.cpp
  515   BCase(SHF_WRITE);
lib/Target/BPF/MCTargetDesc/BPFELFObjectWriter.cpp
   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 |
  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/Mips/AsmParser/MipsAsmParser.cpp
 7820       Section, Type, ELF::SHF_WRITE | ELF::SHF_ALLOC | ELF::SHF_MIPS_GPREL);
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/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);
   85     Flags |= ELF::SHF_WRITE;
tools/lld/ELF/ICF.cpp
  167   if ((s->flags & SHF_WRITE) && s->name != ".data.rel.ro" &&
tools/lld/ELF/InputFiles.cpp
  457   if (flags & SHF_WRITE)
 1445   auto *section = make<InputSection>(this, SHF_ALLOC | SHF_WRITE, SHT_PROGBITS,
tools/lld/ELF/LinkerScript.cpp
  350       sections, [](InputSectionBase *sec) { return sec->flags & SHF_WRITE; });
  952                             SHF_WRITE | SHF_EXECINSTR);
tools/lld/ELF/OutputSections.cpp
   48   if (flags & SHF_WRITE)
tools/lld/ELF/Relocations.cpp
 1043   bool canWrite = (sec.flags & SHF_WRITE) || !config->zText;
tools/lld/ELF/ScriptParser.cpp
 1498       flag = SHF_WRITE;
tools/lld/ELF/SyntheticSections.cpp
  340     : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_NOBITS, alignment, name) {
  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,
 1194     : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_DYNAMIC, config->wordsize,
 2459     this->flags |= SHF_WRITE;
 3146     : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS, config->wordsize,
 3392     : SyntheticSection(SHF_ALLOC | SHF_WRITE, SHT_PROGBITS, 4, ".got2") {}
 3427     : SyntheticSection(SHF_ALLOC | SHF_WRITE,
tools/lld/ELF/Writer.cpp
  752   if (!(flags & SHF_ALLOC) || !(flags & SHF_WRITE))
  889   bool isWrite = sec->flags & SHF_WRITE;
tools/lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
 1639   if (H.sh_flags & SHF_WRITE)
 3157   *s << ((sh_flags & SHF_WRITE) ? "WRITE" : "     ")
 3158      << (((sh_flags & SHF_WRITE) && (sh_flags & SHF_ALLOC)) ? '+' : ' ')
tools/llvm-nm/llvm-nm.cpp
  918       return Flags & ELF::SHF_WRITE ? 'd' : 'r';
  927     if (!(Flags & ELF::SHF_WRITE))
tools/llvm-objcopy/ELF/ELFObjcopy.cpp
   79     NewFlags |= ELF::SHF_WRITE;
tools/llvm-objcopy/ELF/Object.cpp
 1155   DataSection.Flags = ELF::SHF_ALLOC | ELF::SHF_WRITE;
 1203             ELF::SHF_ALLOC | ELF::SHF_WRITE, SecNo);
tools/llvm-readobj/ELFDumper.cpp
 1132   ENUM_ENT(SHF_WRITE,            "W"),
 1182     case ELF::SHF_WRITE: