Home
last modified time | relevance | path

Searched refs:osec (Results 1 – 24 of 24) sorted by relevance

/freebsd-14.2/contrib/llvm-project/lld/MachO/
H A DMapFile.cpp152 for (const Symbol *sym : osec->getEntries()) in printNonLazyPointerSection()
193 if (osec->isHidden()) in writeMapFile()
196 os << format("0x%08llX\t0x%08llX\t%s\t%s\n", osec->addr, osec->getSize(), in writeMapFile()
212 } else if (osec == in.cStringSection || osec == in.objcMethnameSection) { in writeMapFile()
227 osec->addr, osec->getSize()); in writeMapFile()
228 } else if (osec == in.stubs) { in writeMapFile()
230 } else if (osec == in.lazyPointers) { in writeMapFile()
232 } else if (osec == in.stubHelper) { in writeMapFile()
235 osec->getSize()); in writeMapFile()
236 } else if (osec == in.got) { in writeMapFile()
[all …]
H A DOutputSegment.cpp56 count += (!osec->isHidden() ? 1 : 0); in numNonHiddenSections()
63 osec->parent = this; in addOutputSection()
64 sections.push_back(osec); in addOutputSection()
68 osec->align = sectAlign.align; in addOutputSection()
89 StringRef segname = osec->parent->name; in sectionOrder()
92 return StringSwitch<int>(osec->name) in sectionOrder()
101 .Default(osec->inputOrder); in sectionOrder()
111 switch (sectionType(osec->flags)) { in sectionOrder()
125 .Default(osec->inputOrder); in sectionOrder()
141 .Default(osec->inputOrder); in sectionOrder()
[all …]
H A DWriter.cpp252 if (osec->isHidden()) in writeTo()
258 memcpy(sectHdr->sectname, osec->name.data(), osec->name.size()); in writeTo()
950 if (isThreadLocalData(osec->flags) && osec->align > tlvAlign) in sortSegmentsAndSections()
1006 osec->inputOrder = in createOutputSections()
1026 osec->align = std::max<uint32_t>(osec->align, target->wordSize); in createOutputSections()
1110 if (osec) in finalizeLinkEditSegment()
1112 [](LinkEditSection *osec) { osec->finalizeContents(); }, osec)); in finalizeLinkEditSegment() argument
1133 osec->addr = addr; in assignAddresses()
1134 osec->fileOff = isZeroFill(osec->flags) ? 0 : fileOff; in assignAddresses()
1135 osec->finalize(); in assignAddresses()
[all …]
H A DRelocations.cpp78 auto *osec = cast<ConcatOutputSection>(sections[osecIdx - 1]); in offsetToInputSection() local
79 *off -= osec->fileOff; in offsetToInputSection()
82 for (; isecIdx < osec->inputs.size(); ++isecIdx) { in offsetToInputSection()
83 const ConcatInputSection *isec = osec->inputs[isecIdx]; in offsetToInputSection()
88 ConcatInputSection *isec = osec->inputs[isecIdx - 1]; in offsetToInputSection()
H A DConcatOutputSection.cpp412 ConcatOutputSection *&osec = concatOutputSections[names]; in getOrCreateForInput() local
413 if (!osec) { in getOrCreateForInput()
417 osec = make<TextOutputSection>(names.second); in getOrCreateForInput()
419 osec = make<ConcatOutputSection>(names.second); in getOrCreateForInput()
421 return osec; in getOrCreateForInput()
H A DSymbolTable.cpp365 OutputSection *osec = nullptr; in handleSectionBoundarySymbol() local
369 osec = ssec->isec->parent; in handleSectionBoundarySymbol()
373 if (!osec) { in handleSectionBoundarySymbol()
384 osec = isec->parent = ConcatOutputSection::getOrCreateForInput(isec); in handleSectionBoundarySymbol()
389 osec->sectionStartSymbols.push_back(createBoundarySymbol(sym)); in handleSectionBoundarySymbol()
391 osec->sectionEndSymbols.push_back(createBoundarySymbol(sym)); in handleSectionBoundarySymbol()
H A DInputSection.cpp307 auto *osec = cast<WordLiteralSection>(parent); in getOffset() local
311 return osec->getLiteral4Offset(buf + (off & ~3LLU)) | (off & 3); in getOffset()
313 return osec->getLiteral8Offset(buf + (off & ~7LLU)) | (off & 7); in getOffset()
315 return osec->getLiteral16Offset(buf + (off & ~15LLU)) | (off & 15); in getOffset()
H A DDriver.cpp597 ConcatOutputSection *osec = nullptr; in replaceCommonSymbols() local
612 if (!osec) in replaceCommonSymbols()
613 osec = ConcatOutputSection::getOrCreateForInput(isec); in replaceCommonSymbols()
614 isec->parent = osec; in replaceCommonSymbols()
1223 ConcatOutputSection *osec = nullptr; in gatherInputSections() local
1234 if (!osec) in gatherInputSections()
1235 osec = ConcatOutputSection::getOrCreateForInput(isec); in gatherInputSections()
1236 isec->parent = osec; in gatherInputSections()
H A DSyntheticSections.cpp149 for (const OutputSection *osec : seg->getSections()) { in writeTo() local
150 if (isThreadLocalVariables(osec->flags)) { in writeTo()
429 static void encodeBinding(const OutputSection *osec, uint64_t outSecOff, in encodeBinding() argument
432 OutputSegment *seg = osec->parent; in encodeBinding()
433 uint64_t offset = osec->getSegmentOffset() + outSecOff; in encodeBinding()
/freebsd-14.2/contrib/llvm-project/lld/ELF/
H A DMapFile.cpp97 OutputSection *osec = syms[i]->getOutputSection(); in getSymbolStrings() local
99 uint64_t lma = osec ? osec->getLMA() + vma - osec->getVA(0) : 0; in getSymbolStrings()
142 writeHeader(os, osec->addr + p.outputOff, osec->getLMA() + p.outputOff, in printEhFrame()
160 OutputSection *osec = nullptr; in writeMapFile() local
165 uint64_t lma = osec ? osec->getLMA() + assign->addr - osec->getVA(0) : 0; in writeMapFile()
171 osec = &cast<OutputDesc>(cmd)->osec; in writeMapFile()
172 writeHeader(os, osec->addr, osec->getLMA(), osec->size, osec->addralign); in writeMapFile()
173 os << osec->name << '\n'; in writeMapFile()
176 for (SectionCommand *subCmd : osec->commands) { in writeMapFile()
194 writeHeader(os, osec->addr + data->offset, in writeMapFile()
[all …]
H A DLinkerScript.cpp619 osec->commands.clear(); in processSectionCommands()
633 osec->commands.clear(); in processSectionCommands()
640 if (osec->subalignExpr) { in processSectionCommands()
649 osec->partition = 1; in processSectionCommands()
658 OutputSection *osec = &osd->osec; in processSectionCommands() local
659 if (process(osec) && in processSectionCommands()
665 OutputSection *osec = &osd->osec; in processSectionCommands() local
667 log(overwrite->osec.location + " overwrites " + osec->name); in processSectionCommands()
679 if (osd->osec.partition == 1 && osd->osec.sectionIndex == UINT32_MAX) in processSectionCommands()
715 return &osd->osec; in findByName()
[all …]
H A DScriptParser.cpp566 prev = &osd->osec; in readOverlay()
614 osd->osec.relro = false; in readSections()
908 osd->osec.inOverlay = true; in readOverlaySectionDescription()
925 OutputSection *osec = &cmd->osec; in readOutputSectionDescription() local
998 if (osec->lmaExpr && !osec->lmaRegionName.empty()) in readOutputSectionDescription()
1006 osec->filler = readFill(); in readOutputSectionDescription()
1411 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec; in readPrimary() local
1436 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec; in readPrimary() local
1439 return osec->addralign; in readPrimary()
1497 OutputSection *osec = &script->getOrCreateOutputSection(name)->osec; in readPrimary() local
[all …]
H A DWriter.cpp318 if (osd->osec.name == name && osd->osec.partition == partition) in findSection()
319 return &osd->osec; in findSection()
789 OutputSection &osec = osd->osec; in addSectionSymbols() local
991 osec.relro = true; in getSectionRank()
1522 osd->osec.sortRank = getSectionRank(osd->osec); in sortSections()
1769 OutputSection *osec = &osd->osec; in finalizeAddressDependentContent() local
1770 if (osec->addr % osec->addralign != 0) in finalizeAddressDependentContent()
2105 OutputSection *osec = &osd->osec; in finalizeSections() local
2108 osec->shName = in.shStrTab->addString(osec->name); in finalizeSections()
2717 osec->offset = alignToPowerOf2(off, osec->addralign); in assignFileOffsets()
[all …]
H A DOutputSections.h129 OutputSection osec; member
131 : SectionCommand(OutputSectionKind), osec(name, type, flags) {} in OutputDesc()
H A DRelocations.cpp385 OutputSection *osec = (isRO ? in.bssRelRo : in.bss)->getParent(); in addCopyRelSymbol() local
389 if (osec->commands.empty() || in addCopyRelSymbol()
390 !isa<InputSectionDescription>(osec->commands.back())) in addCopyRelSymbol()
391 osec->commands.push_back(make<InputSectionDescription>("")); in addCopyRelSymbol()
392 auto *isd = cast<InputSectionDescription>(osec->commands.back()); in addCopyRelSymbol()
394 osec->commitSection(sec); in addCopyRelSymbol()
H A DInputSection.cpp342 OutputSection *osec = sections[idx]->getOutputSection(); in copyShtGroup() local
343 if (osec && seen.insert(osec->sectionIndex).second) in copyShtGroup()
344 *to++ = osec->sectionIndex; in copyShtGroup()
H A DOutputSections.cpp574 if (OutputSection *osec = sections[read32(&idx)]->getOutputSection()) in finalizeShtGroup() local
575 seen.insert(osec->sectionIndex); in finalizeShtGroup()
H A DICF.cpp574 for (SectionCommand *subCmd : osd->osec.commands) in run()
H A DDriver.cpp3033 osd->osec.finalizeInputSections(); in link()
/freebsd-14.2/contrib/llvm-project/lld/ELF/Arch/
H A DARM.cpp1391 for (auto &[osec, isec] : osIsPairs) { in writeARMCmseImportLib()
1392 osec->sectionIndex = ++idx; in writeARMCmseImportLib()
1393 osec->recordSection(isec); in writeARMCmseImportLib()
1394 osec->finalizeInputSections(); in writeARMCmseImportLib()
1395 osec->shName = shstrtab->addString(osec->name); in writeARMCmseImportLib()
1396 osec->size = isec->getSize(); in writeARMCmseImportLib()
1398 osec->offset = alignToPowerOf2(off, osec->addralign); in writeARMCmseImportLib()
1399 off = osec->offset + osec->size; in writeARMCmseImportLib()
1443 for (auto &[osec, _] : osIsPairs) in writeARMCmseImportLib()
1449 for (auto &[osec, _] : osIsPairs) in writeARMCmseImportLib()
[all …]
H A DRISCV.cpp683 for (OutputSection *osec : outputSections) { in initSymbolAnchors()
684 if (!(osec->flags & SHF_EXECINSTR)) in initSymbolAnchors()
686 for (InputSection *sec : getInputSections(*osec, storage)) { in initSymbolAnchors()
722 for (OutputSection *osec : outputSections) { in initSymbolAnchors()
723 if (!(osec->flags & SHF_EXECINSTR)) in initSymbolAnchors()
725 for (InputSection *sec : getInputSections(*osec, storage)) { in initSymbolAnchors()
925 for (OutputSection *osec : outputSections) { in relaxOnce()
926 if (!(osec->flags & SHF_EXECINSTR)) in relaxOnce()
928 for (InputSection *sec : getInputSections(*osec, storage)) in relaxOnce()
938 for (OutputSection *osec : outputSections) { in finalizeRelax()
[all …]
H A DX86_64.cpp313 for (OutputSection *osec : outputSections) { in relaxOnce()
314 minVA = std::min(minVA, osec->addr); in relaxOnce()
315 maxVA = std::max(maxVA, osec->addr + osec->size); in relaxOnce()
323 for (OutputSection *osec : outputSections) { in relaxOnce()
324 if (!(osec->flags & SHF_EXECINSTR)) in relaxOnce()
326 for (InputSection *sec : getInputSections(*osec, storage)) { in relaxOnce()
H A DLoongArch.cpp772 for (OutputSection *osec : outputSections) { in relaxOnce()
773 if (!(osec->flags & SHF_EXECINSTR)) in relaxOnce()
775 for (InputSection *sec : getInputSections(*osec, storage)) in relaxOnce()
784 for (OutputSection *osec : outputSections) { in finalizeRelax()
785 if (!(osec->flags & SHF_EXECINSTR)) in finalizeRelax()
787 for (InputSection *sec : getInputSections(*osec, storage)) { in finalizeRelax()
H A DSystemZ.cpp441 for (OutputSection *osec : outputSections) { in relaxOnce()
442 if (!(osec->flags & SHF_EXECINSTR)) in relaxOnce()
444 for (InputSection *sec : getInputSections(*osec, storage)) { in relaxOnce()