Home
last modified time | relevance | path

Searched refs:OutputSection (Results 1 – 25 of 49) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/lld/ELF/
H A DOutputSections.h35 class OutputSection final : public SectionBase {
37 OutputSection(StringRef name, uint32_t type, uint64_t flags);
63 OutputSection *relocationSection = nullptr;
129 OutputSection osec;
140 InputSection *getFirstInputSection(const OutputSection *os);
142 getInputSections(const OutputSection &os,
151 static OutputSection *elfHeader;
152 static OutputSection *programHeaders;
153 static OutputSection *preinitArray;
154 static OutputSection *initArray;
[all …]
H A DOutputSections.cpp43 OutputSection *Out::elfHeader;
44 OutputSection *Out::programHeaders;
45 OutputSection *Out::preinitArray;
46 OutputSection *Out::initArray;
47 OutputSection *Out::finiArray;
51 uint32_t OutputSection::getPhdrFlags() const { in getPhdrFlags()
76 OutputSection::OutputSection(StringRef name, uint32_t type, uint64_t flags) in OutputSection() function in OutputSection
189 void OutputSection::finalizeInputSections() { in finalizeInputSections()
579 void OutputSection::finalize() { in finalize()
665 void OutputSection::sortCtorsDtors() { in sortCtorsDtors()
[all …]
H A DRelocations.h21 class OutputSection; variable
146 void hexagonTLSSymbolUpdate(ArrayRef<OutputSection *> outputSections);
147 bool hexagonNeedsTLSSymbol(ArrayRef<OutputSection *> outputSections);
156 bool createThunks(uint32_t pass, ArrayRef<OutputSection *> outputSections);
159 void mergeThunks(ArrayRef<OutputSection *> outputSections);
161 ThunkSection *getISDThunkSec(OutputSection *os, InputSection *isec,
167 void createInitialThunkSections(ArrayRef<OutputSection *> outputSections);
172 ThunkSection *addThunkSection(OutputSection *os, InputSectionDescription *,
H A DWriter.cpp116 for (OutputSection *sec : outputSections) in removeEmptyPTLoad()
789 OutputSection &osec = osd->osec; in addSectionSymbols()
1131 OutputSection *edata = nullptr; in setReservedSymbolSections()
1153 OutputSection *sbss = in setReservedSymbolSections()
1769 OutputSection *osec = &osd->osec; in finalizeAddressDependentContent()
2105 OutputSection *osec = &osd->osec; in finalizeSections()
2424 OutputSection *relroEnd = nullptr; in createPhdrs()
2574 OutputSection *cmd = p->firstSec; in fixSectionAlignments()
2747 OutputSection *first = p->firstSec; in setPhdrs()
2748 OutputSection *last = p->lastSec; in setPhdrs()
[all …]
H A DWriter.h18 class OutputSection; variable
30 void add(OutputSection *sec);
41 OutputSection *firstSec = nullptr;
42 OutputSection *lastSec = nullptr;
H A DLinkerScript.h32 class OutputSection; variable
272 OutputSection *outSec = nullptr;
291 SmallVector<InputSectionBase *, 0> createInputSectionList(OutputSection &cmd);
293 void discardSynthetic(OutputSection &);
295 SmallVector<size_t, 0> getPhdrIndices(OutputSection *sec);
298 findMemoryRegion(OutputSection *sec, MemoryRegion *hint);
300 void assignOffsets(OutputSection *sec);
310 OutputSection *aether;
340 bool isDiscarded(const OutputSection *sec) const;
H A DLinkerScript.cpp59 OutputSection *out = rel->getOutputSection(); in getOutputSectionName()
610 auto process = [this](OutputSection *osec) { in processSectionCommands()
658 OutputSection *osec = &osd->osec; in processSectionCommands()
665 OutputSection *osec = &osd->osec; in processSectionCommands()
801 for (OutputSection *sec : v) { in addInputSec()
812 OutputSection *firstIsecOut = in addInputSec()
831 StringMap<TinyPtrVector<OutputSection *>> map; in addOrphanSections()
975 for (OutputSection *sec : outputSections) in findFirstSection()
1245 OutputSection *sec = &osd->osec; in adjustSectionsAfterSorting()
1294 for (OutputSection *sec : outputSections) in allocateHeaders()
[all …]
H A DInputSection.h34 class OutputSection; variable
81 OutputSection *getOutputSection();
82 const OutputSection *getOutputSection() const { in getOutputSection()
391 OutputSection *getParent() const { in getParent()
392 return reinterpret_cast<OutputSection *>(parent); in getParent()
H A DRelocations.cpp385 OutputSection *osec = (isRO ? in.bssRelRo : in.bss)->getParent(); in addCopyRelSymbol()
1841 ArrayRef<OutputSection *> outputSections, in forEachInputSectionDescription()
1843 for (OutputSection *os : outputSections) { in forEachInputSectionDescription()
1943 void ThunkCreator::mergeThunks(ArrayRef<OutputSection *> outputSections) { in mergeThunks()
1945 outputSections, [&](OutputSection *os, InputSectionDescription *isd) { in mergeThunks()
1995 ThunkSection *ThunkCreator::getISDThunkSec(OutputSection *os, in getISDThunkSec()
2037 OutputSection *tos = isec->getParent(); in getISThunkSec()
2074 ArrayRef<OutputSection *> outputSections) { in createInitialThunkSections()
2107 ThunkSection *ThunkCreator::addThunkSection(OutputSection *os, in addThunkSection()
2234 ArrayRef<OutputSection *> outputSections) { in createThunks()
[all …]
H A DMapFile.cpp97 OutputSection *osec = syms[i]->getOutputSection(); in getSymbolStrings()
140 const OutputSection *osec = sec->getOutputSection(); in printEhFrame()
160 OutputSection *osec = nullptr; in writeMapFile()
H A DScriptParser.cpp93 bool readSectionDirective(OutputSection *cmd, StringRef tok1, StringRef tok2);
94 void readSectionAddressType(OutputSection *cmd);
550 OutputSection *prev = nullptr; in readOverlay()
837 bool ScriptParser::readSectionDirective(OutputSection *cmd, StringRef tok1, StringRef tok2) { in readSectionDirective()
882 void ScriptParser::readSectionAddressType(OutputSection *cmd) { in readSectionAddressType()
925 OutputSection *osec = &cmd->osec; in readOutputSectionDescription()
1367 static void checkIfExists(const OutputSection &osec, StringRef location) { in checkIfExists()
1411 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec; in readPrimary()
1436 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec; in readPrimary()
1497 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec; in readPrimary()
[all …]
/freebsd-14.2/contrib/llvm-project/lld/MachO/
H A DOutputSegment.h38 class OutputSection; variable
43 void addOutputSection(OutputSection *os);
47 const std::vector<OutputSection *> &getSections() const { return sections; } in getSections()
65 std::vector<OutputSection *> sections;
H A DOutputSection.h35 class OutputSection {
42 OutputSection(Kind kind, StringRef name) : name(name), sectionKind(kind) {} in OutputSection() function
43 virtual ~OutputSection() = default;
H A DConcatOutputSection.h26 class ConcatOutputSection : public OutputSection {
29 : OutputSection(ConcatKind, name) {} in ConcatOutputSection()
48 static bool classof(const OutputSection *sec) { in classof()
H A DOutputSection.cpp16 uint64_t OutputSection::getSegmentOffset() const { return addr - parent->addr; } in getSegmentOffset()
18 void OutputSection::assignAddressesToStartEndSymbols() { in assignAddressesToStartEndSymbols()
H A DWriter.h16 class OutputSection; variable
36 extern OutputSection *firstTLVDataSection;
H A DOutputSegment.cpp55 for (const OutputSection *osec : sections) in numNonHiddenSections()
60 void OutputSegment::addOutputSection(OutputSection *osec) { in addOutputSection()
88 static int sectionOrder(OutputSection *osec) { in sectionOrder()
155 llvm::stable_sort(sections, compareByOrder<OutputSection *>(sectionOrder)); in sortOutputSections()
H A DMapFile.cpp58 DenseMap<const OutputSection *,
138 const OutputSection *osec, size_t entrySize) { in printStubsEntries()
192 for (OutputSection *osec : seg->getSections()) { in writeMapFile()
203 for (const OutputSection *osec : seg->getSections()) { in writeMapFile()
/freebsd-14.2/contrib/llvm-project/lld/COFF/
H A DWriter.cpp306 OutputSection *textSec;
307 OutputSection *rdataSec;
309 OutputSection *dataSec;
310 OutputSection *pdataSec;
311 OutputSection *idataSec;
312 OutputSection *edataSec;
313 OutputSection *didatSec;
314 OutputSection *rsrcSec;
315 OutputSection *relocSec;
357 void OutputSection::merge(OutputSection *other) { in merge()
[all …]
H A DWriter.h39 class OutputSection {
41 OutputSection(llvm::StringRef n, uint32_t chars) : name(n) { in OutputSection() function
46 void merge(OutputSection *other);
H A DCOFFLinkerContext.h52 std::vector<OutputSection *> outputSections;
54 OutputSection *getOutputSection(const Chunk *c) const { in getOutputSection()
H A DChunks.cpp77 static bool checkSecRel(const SectionChunk *sec, OutputSection *os) { in checkSecRel()
87 OutputSection *os, uint64_t s) { in applySecRel()
98 static void applySecIdx(uint8_t *off, OutputSection *os, in applySecIdx()
113 void SectionChunk::applyRelX64(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX64()
140 void SectionChunk::applyRelX86(uint8_t *off, uint16_t type, OutputSection *os, in applyRelX86()
208 void SectionChunk::applyRelARM(uint8_t *off, uint16_t type, OutputSection *os, in applyRelARM()
283 OutputSection *os, uint64_t s) { in applySecRelLow12A()
289 OutputSection *os, uint64_t s) { in applySecRelHigh12A()
302 OutputSection *os, uint64_t s) { in applySecRelLdr()
325 void SectionChunk::applyRelARM64(uint8_t *off, uint16_t type, OutputSection *os, in applyRelARM64()
[all …]
H A DChunks.h38 class OutputSection; variable
258 void applyRelX64(uint8_t *off, uint16_t type, OutputSection *os, uint64_t s,
260 void applyRelX86(uint8_t *off, uint16_t type, OutputSection *os, uint64_t s,
262 void applyRelARM(uint8_t *off, uint16_t type, OutputSection *os, uint64_t s,
264 void applyRelARM64(uint8_t *off, uint16_t type, OutputSection *os, uint64_t s,
/freebsd-14.2/contrib/llvm-project/llvm/lib/InterfaceStub/
H A DELFObjHandler.cpp75 template <class ELFT> struct OutputSection { struct
88 struct ContentSection : public OutputSection<ELFT> {
200 std::vector<OutputSection<ELFT> *> Sections = {&DynSym, &DynStr, &DynTab, in ELFStubBuilder()
202 const OutputSection<ELFT> *LastSection = Sections.back(); in ELFStubBuilder()
205 for (OutputSection<ELFT> *Sec : Sections) { in ELFStubBuilder()
239 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()
/freebsd-14.2/contrib/llvm-project/lld/docs/ELF/
H A Dlinker_script.rst90 When an *OutputSection* *S* has ``address``, LLD will set sh_addr to ``address``.
113 When an *OutputSection* *S* has ``(type)``, LLD will set ``sh_type`` or
128 sh_addralign of an *OutputSection* *S* is the maximum of
132 When an *OutputSection* *S* has both ``address`` and ``ALIGN(section_align)``,
148 the previous OutputSection a new loadable segment will be generated.

12