| /llvm-project-15.0.7/lld/wasm/ |
| H A D | OutputSections.h | 21 class OutputSection; variable 23 std::string toString(const wasm::OutputSection §ion); 29 class OutputSection { 31 OutputSection(uint32_t type, std::string name = "") 33 virtual ~OutputSection() = default; 56 class CodeSection : public OutputSection { 61 static bool classof(const OutputSection *sec) { in classof() 79 class DataSection : public OutputSection { 84 static bool classof(const OutputSection *sec) { in classof() 109 class CustomSection : public OutputSection { [all …]
|
| H A D | MapFile.h | 16 class OutputSection; variable 17 void writeMapFile(llvm::ArrayRef<OutputSection *> outputSections);
|
| H A D | SyntheticSections.h | 36 class SyntheticSection : public OutputSection { 39 : OutputSection(type, name), bodyOutputStream(body) { in OutputSection() function 263 static bool classof(const OutputSection *sec) { 421 RelocSection(StringRef name, OutputSection *sec) 428 OutputSection *sec;
|
| /llvm-project-15.0.7/lld/ELF/ |
| H A D | OutputSections.h | 34 class OutputSection final : public SectionBase { 36 OutputSection(StringRef name, uint32_t type, uint64_t flags); 62 OutputSection *relocationSection = nullptr; 125 OutputSection osec; 136 InputSection *getFirstInputSection(const OutputSection *os); 138 getInputSections(const OutputSection &os, 147 static OutputSection *elfHeader; 148 static OutputSection *programHeaders; 149 static OutputSection *preinitArray; 150 static OutputSection *initArray; [all …]
|
| H A D | OutputSections.cpp | 37 OutputSection *Out::elfHeader; 38 OutputSection *Out::programHeaders; 39 OutputSection *Out::preinitArray; 40 OutputSection *Out::initArray; 41 OutputSection *Out::finiArray; 45 uint32_t OutputSection::getPhdrFlags() const { in getPhdrFlags() 70 OutputSection::OutputSection(StringRef name, uint32_t type, uint64_t flags) in OutputSection() function in OutputSection 181 void OutputSection::finalizeInputSections() { in finalizeInputSections() 482 void OutputSection::finalize() { in finalize() 568 void OutputSection::sortCtorsDtors() { in sortCtorsDtors() [all …]
|
| H A D | Relocations.h | 22 class OutputSection; variable 133 void hexagonTLSSymbolUpdate(ArrayRef<OutputSection *> outputSections); 134 bool hexagonNeedsTLSSymbol(ArrayRef<OutputSection *> outputSections); 143 bool createThunks(uint32_t pass, ArrayRef<OutputSection *> outputSections); 146 void mergeThunks(ArrayRef<OutputSection *> outputSections); 148 ThunkSection *getISDThunkSec(OutputSection *os, InputSection *isec, 154 void createInitialThunkSections(ArrayRef<OutputSection *> outputSections); 159 ThunkSection *addThunkSection(OutputSection *os, InputSectionDescription *,
|
| H A D | Writer.cpp | 116 for (OutputSection *sec : outputSections) in removeEmptyPTLoad() 725 OutputSection &osec = osd->osec; in addSectionSymbols() 1087 OutputSection *edata = nullptr; in setReservedSymbolSections() 1129 static int getRankProximityAux(const OutputSection &a, const OutputSection &b) { in getRankProximityAux() 1708 OutputSection *osec = &osd->osec; in finalizeAddressDependentContent() 2031 OutputSection *osec = &osd->osec; in finalizeSections() 2330 OutputSection *relroEnd = nullptr; in createPhdrs() 2468 OutputSection *cmd = p->firstSec; in fixSectionAlignments() 2641 OutputSection *first = p->firstSec; in setPhdrs() 2642 OutputSection *last = p->lastSec; in setPhdrs() [all …]
|
| H A D | LinkerScript.h | 32 class OutputSection; variable 264 OutputSection *outSec = nullptr; 283 SmallVector<InputSectionBase *, 0> createInputSectionList(OutputSection &cmd); 285 void discardSynthetic(OutputSection &); 287 SmallVector<size_t, 0> getPhdrIndices(OutputSection *sec); 290 findMemoryRegion(OutputSection *sec, MemoryRegion *hint); 292 void assignOffsets(OutputSection *sec); 302 OutputSection *aether; 331 bool isDiscarded(const OutputSection *sec) const;
|
| H A D | Writer.h | 19 class OutputSection; variable 32 void add(OutputSection *sec); 43 OutputSection *firstSec = nullptr; 44 OutputSection *lastSec = nullptr;
|
| H A D | LinkerScript.cpp | 62 OutputSection *out = rel->getOutputSection(); in getOutputSectionName() 603 auto process = [this](OutputSection *osec) { in processSectionCommands() 651 OutputSection *osec = &osd->osec; in processSectionCommands() 658 OutputSection *osec = &osd->osec; in processSectionCommands() 794 for (OutputSection *sec : v) { in addInputSec() 805 OutputSection *firstIsecOut = in addInputSec() 824 StringMap<TinyPtrVector<OutputSection *>> map; in addOrphanSections() 943 for (OutputSection *sec : outputSections) in findFirstSection() 1197 OutputSection *sec = &osd->osec; in adjustSectionsAfterSorting() 1246 for (OutputSection *sec : outputSections) in allocateHeaders() [all …]
|
| H A D | InputSection.h | 31 class OutputSection; variable 78 OutputSection *getOutputSection(); 79 const OutputSection *getOutputSection() const { in getOutputSection() 361 OutputSection *getParent() const { in getParent() 362 return reinterpret_cast<OutputSection *>(parent); in getParent()
|
| H A D | Relocations.cpp | 365 OutputSection *osec = (isRO ? in.bssRelRo : in.bss)->getParent(); in addCopyRelSymbol() 1730 ArrayRef<OutputSection *> outputSections, in forEachInputSectionDescription() 1732 for (OutputSection *os : outputSections) { in forEachInputSectionDescription() 1832 void ThunkCreator::mergeThunks(ArrayRef<OutputSection *> outputSections) { in mergeThunks() 1834 outputSections, [&](OutputSection *os, InputSectionDescription *isd) { in mergeThunks() 1884 ThunkSection *ThunkCreator::getISDThunkSec(OutputSection *os, in getISDThunkSec() 1926 OutputSection *tos = isec->getParent(); in getISThunkSec() 1963 ArrayRef<OutputSection *> outputSections) { in createInitialThunkSections() 1996 ThunkSection *ThunkCreator::addThunkSection(OutputSection *os, in addThunkSection() 2123 ArrayRef<OutputSection *> outputSections) { in createThunks() [all …]
|
| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | BinaryData.cpp | 44 assert(OutputSection == Other->OutputSection); in merge() 80 assert(OutputSection->getOutputAddress()); in getOutputAddress() 81 return OutputSection->getOutputAddress() + OutputOffset; in getOutputAddress() 89 if (OutputSection == Section) in setSection() 90 OutputSection = &NewSection; in setSection() 95 return (getOffset() != OutputOffset || OutputSection != Section); in isMoved() 135 Flags(Flags), OutputSection(&Section), OutputOffset(getOffset()) { in BinaryData()
|
| /llvm-project-15.0.7/lld/COFF/ |
| H A D | Writer.cpp | 277 OutputSection *textSec; 278 OutputSection *rdataSec; 280 OutputSection *dataSec; 281 OutputSection *pdataSec; 282 OutputSection *idataSec; 283 OutputSection *edataSec; 284 OutputSection *didatSec; 285 OutputSection *rsrcSec; 286 OutputSection *relocSec; 321 void OutputSection::merge(OutputSection *other) { in merge() [all …]
|
| H A D | Writer.h | 40 class OutputSection { 42 OutputSection(llvm::StringRef n, uint32_t chars) : name(n) { in OutputSection() function 47 void merge(OutputSection *other);
|
| H A D | COFFLinkerContext.h | 50 std::vector<OutputSection *> outputSections; 52 OutputSection *getOutputSection(const Chunk *c) const { in getOutputSection()
|
| H A D | Chunks.cpp | 76 static bool checkSecRel(const SectionChunk *sec, OutputSection *os) { in checkSecRel() 86 OutputSection *os, uint64_t s) { in applySecRel() 97 static void applySecIdx(uint8_t *off, OutputSection *os) { in applySecIdx() 107 void SectionChunk::applyRelX64(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX64() 127 void SectionChunk::applyRelX86(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX86() 190 void SectionChunk::applyRelARM(uint8_t *off, uint16_t type, OutputSection *os, in applyRelARM() 258 OutputSection *os, uint64_t s) { in applySecRelLow12A() 264 OutputSection *os, uint64_t s) { in applySecRelHigh12A() 277 OutputSection *os, uint64_t s) { in applySecRelLdr() 300 void SectionChunk::applyRelARM64(uint8_t *off, uint16_t type, OutputSection *os, in applyRelARM64() [all …]
|
| /llvm-project-15.0.7/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 : public OutputSection { 30 : OutputSection(ConcatKind, name) {} in ConcatOutputSection() 49 static bool classof(const OutputSection *sec) { in classof()
|
| H A D | OutputSection.cpp | 16 uint64_t OutputSection::getSegmentOffset() const { return addr - parent->addr; } in getSegmentOffset() 18 void OutputSection::assignAddressesToStartEndSymbols() { in assignAddressesToStartEndSymbols()
|
| H A D | Writer.h | 17 class OutputSection; variable 37 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()
|
| /llvm-project-15.0.7/bolt/include/bolt/Core/ |
| H A D | BinaryData.h | 66 BinarySection *OutputSection{nullptr}; 131 BinarySection &getOutputSection() { return *OutputSection; } in getOutputSection() 132 const BinarySection &getOutputSection() const { return *OutputSection; } in getOutputSection() 177 OutputSection = &NewSection; in setOutputSection()
|
| /llvm-project-15.0.7/llvm/lib/InterfaceStub/ |
| H A D | ELFObjHandler.cpp | 74 template <class ELFT> struct OutputSection { struct 87 struct ContentSection : public OutputSection<ELFT> { 199 std::vector<OutputSection<ELFT> *> Sections = {&DynSym, &DynStr, &DynTab, in ELFStubBuilder() 201 const OutputSection<ELFT> *LastSection = Sections.back(); in ELFStubBuilder() 204 for (OutputSection<ELFT> *Sec : Sections) { in ELFStubBuilder() 238 for (OutputSection<ELFT> *Sec : Sections) { in ELFStubBuilder() 329 uint64_t shdrOffset(const OutputSection<ELFT> &Sec) const { in shdrOffset() 333 void writeShdr(uint8_t *Data, const OutputSection<ELFT> &Sec) const { in writeShdr()
|