| /freebsd-13.1/contrib/llvm-project/lld/ELF/ |
| H A D | OutputSections.cpp | 38 OutputSection *Out::elfHeader; 39 OutputSection *Out::programHeaders; 40 OutputSection *Out::preinitArray; 41 OutputSection *Out::initArray; 42 OutputSection *Out::finiArray; 46 uint32_t OutputSection::getPhdrFlags() const { in getPhdrFlags() 71 OutputSection::OutputSection(StringRef name, uint32_t type, uint64_t flags) in OutputSection() function in OutputSection 167 void OutputSection::finalizeInputSections() { in finalizeInputSections() 398 void OutputSection::finalize() { in finalize() 487 void OutputSection::sortCtorsDtors() { in sortCtorsDtors() [all …]
|
| H A D | OutputSections.h | 32 class OutputSection final : public BaseCommand, public SectionBase { 34 OutputSection(StringRef name, uint32_t type, uint64_t flags); 62 OutputSection *relocationSection = nullptr; 123 InputSection *getFirstInputSection(const OutputSection *os); 124 std::vector<InputSection *> getInputSections(const OutputSection *os); 133 static OutputSection *elfHeader; 134 static OutputSection *programHeaders; 135 static OutputSection *preinitArray; 136 static OutputSection *initArray; 137 static OutputSection *finiArray; [all …]
|
| H A D | LinkerScript.cpp | 53 OutputSection *os = sec->getOutputSection(); in getOutputSectionVA() 83 OutputSection *sec; in createOutputSection() 254 std::vector<OutputSection *> moves; in processInsertCommands() 260 return isa<OutputSection>(base) && in processInsertCommands() 300 auto *sec = cast<OutputSection>(base); in declareSymbols() 603 DenseMap<StringRef, OutputSection *> map; in processSectionCommands() 670 static OutputSection * 746 for (OutputSection *sec : v) { in addInputSec() 758 OutputSection *firstIsecOut = in addInputSec() 778 std::vector<OutputSection *> v; in addOrphanSections() [all …]
|
| H A D | LinkerScript.h | 35 class OutputSection; variable 250 OutputSection *outSec = nullptr; 257 llvm::DenseMap<StringRef, OutputSection *> nameToOutputSection; 271 void discardSynthetic(OutputSection &); 273 std::vector<size_t> getPhdrIndices(OutputSection *sec); 275 MemoryRegion *findMemoryRegion(OutputSection *sec); 277 void switchTo(OutputSection *sec); 281 void assignOffsets(OutputSection *sec); 291 OutputSection *aether; 297 OutputSection *getOrCreateOutputSection(StringRef name); [all …]
|
| H A D | Writer.cpp | 178 for (OutputSection *sec : outputSections) in removeEmptyPTLoad() 1063 const OutputSection *a = cast<OutputSection>(aCmd); in compareSections() 1064 const OutputSection *b = cast<OutputSection>(bCmd); in compareSections() 1173 OutputSection *edata = nullptr; in setReservedSymbolSections() 1215 static int getRankProximityAux(OutputSection *a, OutputSection *b) { in getRankProximityAux() 1250 OutputSection *sec = cast<OutputSection>(*e); in findOrphanPos() 1632 OutputSection *orphan = cast<OutputSection>(*nonScriptI); in sortSections() 2390 OutputSection *relroEnd = nullptr; in createPhdrs() 2528 OutputSection *cmd = p->firstSec; in fixSectionAlignments() 2708 OutputSection *last = p->lastSec; in setPhdrs() [all …]
|
| H A D | Relocations.h | 22 class OutputSection; variable 130 void hexagonTLSSymbolUpdate(ArrayRef<OutputSection *> outputSections); 131 bool hexagonNeedsTLSSymbol(ArrayRef<OutputSection *> outputSections); 140 bool createThunks(ArrayRef<OutputSection *> outputSections); 148 void mergeThunks(ArrayRef<OutputSection *> outputSections); 150 ThunkSection *getISDThunkSec(OutputSection *os, InputSection *isec, 156 void createInitialThunkSections(ArrayRef<OutputSection *> outputSections); 161 ThunkSection *addThunkSection(OutputSection *os, InputSectionDescription *,
|
| H A D | Writer.h | 21 class OutputSection; variable 35 void add(OutputSection *sec); 46 OutputSection *firstSec = nullptr; 47 OutputSection *lastSec = nullptr;
|
| H A D | ScriptParser.cpp | 93 void readSectionAddressType(OutputSection *cmd); 94 OutputSection *readOverlaySectionDescription(); 95 OutputSection *readOutputSectionDescription(StringRef outSec); 532 OutputSection *prev = nullptr; in readOverlay() 536 OutputSection *os = readOverlaySectionDescription(); in readOverlay() 553 max = std::max(max, cast<OutputSection>(cmd)->size); in readOverlay() 601 if (auto *os = dyn_cast<OutputSection>(cmd)) in readSections() 821 void ScriptParser::readSectionAddressType(OutputSection *cmd) { in readSectionAddressType() 841 OutputSection *ScriptParser::readOverlaySectionDescription() { in readOverlaySectionDescription() 842 OutputSection *cmd = in readOverlaySectionDescription() [all …]
|
| H A D | MapFile.cpp | 90 OutputSection *osec = syms[i]->getOutputSection(); in getSymbolStrings() 133 const OutputSection *osec = sec->getOutputSection(); in printEhFrame() 166 OutputSection* osec = nullptr; in writeMapFile() 177 osec = cast<OutputSection>(base); in writeMapFile()
|
| H A D | Relocations.cpp | 612 OutputSection *osec = (isRO ? in.bssRelRo : in.bss)->getParent(); in addCopyRelSymbol() 1649 ArrayRef<OutputSection *> outputSections, in forEachInputSectionDescription() 1651 for (OutputSection *os : outputSections) { in forEachInputSectionDescription() 1751 void ThunkCreator::mergeThunks(ArrayRef<OutputSection *> outputSections) { in mergeThunks() 1753 outputSections, [&](OutputSection *os, InputSectionDescription *isd) { in mergeThunks() 1790 ThunkSection *ThunkCreator::getISDThunkSec(OutputSection *os, in getISDThunkSec() 1830 OutputSection *tos = isec->getParent(); in getISThunkSec() 1867 ArrayRef<OutputSection *> outputSections) { in createInitialThunkSections() 1900 ThunkSection *ThunkCreator::addThunkSection(OutputSection *os, in addThunkSection() 2039 bool ThunkCreator::createThunks(ArrayRef<OutputSection *> outputSections) { in createThunks() [all …]
|
| H A D | InputSection.h | 32 class OutputSection; variable 79 OutputSection *getOutputSection(); 80 const OutputSection *getOutputSection() const { in getOutputSection() 364 OutputSection *getParent() const;
|
| /freebsd-13.1/contrib/llvm-project/lld/COFF/ |
| H A D | Writer.cpp | 283 OutputSection *textSec; 284 OutputSection *rdataSec; 286 OutputSection *dataSec; 287 OutputSection *pdataSec; 288 OutputSection *idataSec; 289 OutputSection *edataSec; 290 OutputSection *didatSec; 291 OutputSection *rsrcSec; 292 OutputSection *relocSec; 328 void OutputSection::merge(OutputSection *other) { in merge() [all …]
|
| H A D | Writer.h | 39 class OutputSection { 41 OutputSection(llvm::StringRef n, uint32_t chars) : name(n) { in OutputSection() function 46 void merge(OutputSection *other);
|
| H A D | LLDMapFile.h | 16 class OutputSection; variable 17 void writeLLDMapFile(llvm::ArrayRef<OutputSection *> outputSections);
|
| H A D | MapFile.h | 16 class OutputSection; variable 17 void writeMapFile(llvm::ArrayRef<OutputSection *> outputSections);
|
| H A D | PDB.h | 26 class OutputSection; variable 31 llvm::ArrayRef<OutputSection *> outputSections,
|
| H A D | Chunks.cpp | 75 static bool checkSecRel(const SectionChunk *sec, OutputSection *os) { in checkSecRel() 85 OutputSection *os, uint64_t s) { in applySecRel() 96 static void applySecIdx(uint8_t *off, OutputSection *os) { in applySecIdx() 106 void SectionChunk::applyRelX64(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX64() 126 void SectionChunk::applyRelX86(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX86() 189 void SectionChunk::applyRelARM(uint8_t *off, uint16_t type, OutputSection *os, in applyRelARM() 256 OutputSection *os, uint64_t s) { in applySecRelLow12A() 262 OutputSection *os, uint64_t s) { in applySecRelHigh12A() 275 OutputSection *os, uint64_t s) { in applySecRelLdr() 298 void SectionChunk::applyRelARM64(uint8_t *off, uint16_t type, OutputSection *os, in applyRelARM64() [all …]
|
| H A D | Chunks.h | 38 class OutputSection; variable 104 OutputSection *getOutputSection() const; 225 void applyRelX64(uint8_t *off, uint16_t type, OutputSection *os, uint64_t s, 227 void applyRelX86(uint8_t *off, uint16_t type, OutputSection *os, uint64_t s, 229 void applyRelARM(uint8_t *off, uint16_t type, OutputSection *os, uint64_t s, 231 void applyRelARM64(uint8_t *off, uint16_t type, OutputSection *os, uint64_t s,
|
| /freebsd-13.1/contrib/llvm-project/lld/MachO/ |
| H A D | OutputSegment.h | 39 class OutputSection; variable 44 void addOutputSection(OutputSection *os); 48 const std::vector<OutputSection *> &getSections() const { return sections; } in getSections() 65 std::vector<OutputSection *> sections;
|
| H A D | OutputSection.h | 36 class OutputSection { 43 OutputSection(Kind kind, StringRef name) : name(name), sectionKind(kind) {} in OutputSection() function 44 virtual ~OutputSection() = default;
|
| H A D | ConcatOutputSection.h | 27 class ConcatOutputSection final : public OutputSection { 30 : OutputSection(ConcatKind, name) {} in ConcatOutputSection() 50 static bool classof(const OutputSection *sec) { in classof()
|
| H A D | OutputSection.cpp | 16 uint64_t OutputSection::getSegmentOffset() const { in getSegmentOffset() 20 void OutputSection::assignAddressesToStartEndSymbols() { in assignAddressesToStartEndSymbols()
|
| H A D | Writer.h | 17 class OutputSection; variable 36 extern OutputSection *firstTLVDataSection;
|
| H A D | OutputSegment.cpp | 49 for (const OutputSection *osec : sections) in numNonHiddenSections() 54 void OutputSegment::addOutputSection(OutputSection *osec) { in addOutputSection() 82 static int sectionOrder(OutputSection *osec) { in sectionOrder() 146 llvm::stable_sort(sections, compareByOrder<OutputSection *>(sectionOrder)); in sortOutputSections()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/InterfaceStub/ |
| H A D | ELFObjHandler.cpp | 76 template <class ELFT> struct OutputSection { struct 89 struct ContentSection : public OutputSection<ELFT> { 201 std::vector<OutputSection<ELFT> *> Sections = {&DynSym, &DynStr, &DynTab, in ELFStubBuilder() 203 const OutputSection<ELFT> *LastSection = Sections.back(); in ELFStubBuilder() 206 for (OutputSection<ELFT> *Sec : Sections) { in ELFStubBuilder() 238 for (OutputSection<ELFT> *Sec : Sections) { in ELFStubBuilder() 330 uint64_t shdrOffset(const OutputSection<ELFT> &Sec) const { in shdrOffset() 334 void writeShdr(uint8_t *Data, const OutputSection<ELFT> &Sec) const { in writeShdr()
|