Home
last modified time | relevance | path

Searched refs:outSecOff (Results 1 – 25 of 26) sorted by relevance

12

/llvm-project-15.0.7/lld/MachO/
H A DConcatOutputSection.cpp199 isec->outSecOff = size; in finalizeOne()
361 isec->writeTo(buf + isec->outSecOff); in writeTo()
370 inputs[i]->outSecOff < thunks[t]->outSecOff)) { in writeTo()
371 inputs[i]->writeTo(buf + inputs[i]->outSecOff); in writeTo()
374 while (t < te && (i == ie || thunks[t]->outSecOff < inputs[i]->outSecOff)) { in writeTo()
375 thunks[t]->writeTo(buf + thunks[t]->outSecOff); in writeTo()
H A DRelocations.cpp74 if (*off < isec->outSecOff) in offsetToInputSection()
79 *off -= isec->outSecOff; in offsetToInputSection()
H A DInputSection.h106 uint64_t getOffset(uint64_t off) const override { return outSecOff + off; } in getOffset()
143 uint64_t outSecOff = 0; variable
174 uint64_t outSecOff = 0; member
H A DSyntheticSections.cpp373 static void encodeBinding(const OutputSection *osec, uint64_t outSecOff, in encodeBinding() argument
377 uint64_t offset = osec->getSegmentOffset() + outSecOff; in encodeBinding()
1445 memcpy(buf + isec->pieces[i].outSecOff, string.data(), string.size()); in writeTo()
1461 isec->pieces[i].outSecOff = offset; in finalizeContents()
1535 if (offsetInfo.outSecOff == UINT64_MAX) { in finalizeContents()
1536 offsetInfo.outSecOff = alignTo(size, 1ULL << offsetInfo.trailingZeros); in finalizeContents()
1537 size = offsetInfo.outSecOff + s.size(); in finalizeContents()
1539 isec->pieces[i].outSecOff = offsetInfo.outSecOff; in finalizeContents()
1548 uint64_t off = p.second.outSecOff; in writeTo()
H A DInputSection.cpp277 return piece.outSecOff + addend; in getOffset()
H A DSyntheticSections.h540 uint64_t outSecOff = UINT64_MAX; member
H A DUnwindInfoSection.cpp363 cu.encoding = target->modeDwarfEncoding | d->unwindEntry->outSecOff; in relocateCompactUnwind()
H A DWriter.cpp954 std::min(osec->inputOrder, static_cast<int>(isec->outSecOff)); in createOutputSections()
/llvm-project-15.0.7/lld/ELF/
H A DARMErrataFix.cpp367 uint64_t prevIsecLimit = isd.sections.front()->outSecOff; in insertPatches()
378 isecLimit = isec->outSecOff + isec->getSize(); in insertPatches()
383 (*patchIt)->outSecOff = prevIsecLimit; in insertPatches()
390 (*patchIt)->outSecOff = isecLimit; in insertPatches()
399 if (a->outSecOff != b->outSecOff) in insertPatches()
400 return a->outSecOff < b->outSecOff; in insertPatches()
H A DAArch64ErrataFix.cpp484 uint64_t prevIsecLimit = isd.sections.front()->outSecOff; in insertPatches()
494 isecLimit = isec->outSecOff + isec->getSize(); in insertPatches()
499 (*patchIt)->outSecOff = prevIsecLimit; in insertPatches()
507 (*patchIt)->outSecOff = isecLimit; in insertPatches()
517 if (a->outSecOff != b->outSecOff) in insertPatches()
518 return a->outSecOff < b->outSecOff; in insertPatches()
H A DRelocations.cpp1705 if (a->outSecOff < b->outSecOff) in mergeCmp()
1709 if (a->outSecOff == b->outSecOff && a != b) { in mergeCmp()
1853 return a->outSecOff < b->outSecOff; in mergeThunks()
1893 uint64_t tsBase = os->addr + ts->outSecOff - pcBias; in getISDThunkSec()
1905 uint64_t thunkSecOff = isec->outSecOff; in getISDThunkSec()
1908 thunkSecOff = isec->outSecOff + isec->getSize(); in getISDThunkSec()
1935 if (isec->outSecOff < first->outSecOff || last->outSecOff < isec->outSecOff) in getISThunkSec()
1938 ts = addThunkSection(tos, isd, isec->outSecOff); in getISThunkSec()
1983 isecLimit = isec->outSecOff + isec->getSize(); in createInitialThunkSections()
2026 uint64_t isdSize = isd->sections.back()->outSecOff + in addThunkSection()
[all …]
H A DOutputSections.cpp427 fill(buf, sections.empty() ? size : sections[0]->outSecOff, filler); in writeTo()
432 s->writeTo(buf + isec->outSecOff); in writeTo()
434 isec->writeTo<ELFT>(buf + isec->outSecOff); in writeTo()
438 uint8_t *start = buf + isec->outSecOff + isec->getSize(); in writeTo()
443 end = buf + sections[i + 1]->outSecOff; in writeTo()
H A DInputSection.cpp156 return cast<InputSection>(this)->outSecOff + offset; in getOffset()
167 return isec->outSecOff + es->getParentOffset(offset); in getOffset()
173 return isec->outSecOff + ms->getParentOffset(offset); in getOffset()
430 p->r_addend += sec->file->ppc32Got2->outSecOff; in copyRelocations()
928 SignExtend64<bits>(sym.getVA(addend - offset - outSecOff))); in relocateNonAlloc()
986 secAddr += sec->outSecOff; in relocateAlloc()
H A DTarget.cpp103 ? (Out::bufferStart + isec->getParent()->offset + isec->outSecOff) in getErrorPlace()
H A DMapFile.cpp184 writeHeader(os, isec->getVA(), osec->getLMA() + isec->outSecOff, in writeMapFile()
H A DSyntheticSections.cpp557 uint8_t *buf = Out::bufferStart + getParent()->offset + outSecOff; in getFdeData()
2961 write64le(buf, chunk.sec->outSecOff + cu.cuOffset); in writeTo()
3037 uint8_t *buf = Out::bufferStart + getParent()->offset + outSecOff; in write()
3502 return a->outSecOff < b->outSecOff; in finalizeContents()
3527 d->outSecOff = offset; in finalizeContents()
3561 d->relocateAlloc(buf + d->outSecOff, buf + d->outSecOff + d->getSize()); in writeTo()
3589 this->outSecOff = off; in ThunkSection()
H A DInputSection.h369 uint64_t outSecOff = 0; variable
H A DThunks.cpp812 (file->ppc32Got2 ? file->ppc32Got2->outSecOff : 0) + addend); in writePPC32PltCallStub()
H A DWriter.cpp1574 return la->outSecOff < lb->outSecOff; in compareByFilePosition()
H A DLinkerScript.cpp1050 isec->outSecOff = dot - sec->addr; in assignOffsets()
/llvm-project-15.0.7/lld/wasm/
H A DInputChunks.cpp90 ms->builder.write(buf + outSecOff); in writeTo()
92 ms->relocate(buf + outSecOff); in writeTo()
97 memcpy(buf + outSecOff, data().data(), data().size()); in writeTo()
100 relocate(buf + outSecOff); in writeTo()
176 int32_t off = outSecOff - getInputSectionOffset(); in writeRelocations()
309 buf += outSecOff; in writeCompressed()
353 return outSecOff + getChunkOffset(offset); in getOffset()
H A DMapFile.cpp84 ? chunk->outputSec->getOffset() + chunk->outSecOff in getSymbolStrings()
131 writeHeader(os, -1, chunk->outputSec->getOffset() + chunk->outSecOff, in writeMapFile()
145 ? chunk->outputSec->getOffset() + chunk->outSecOff in writeMapFile()
H A DOutputSections.cpp58 func->outSecOff = bodySize; in finalizeContents()
160 inputSeg->outSecOff = segment->sectionOffset + segment->header.size() + in finalizeContents()
253 section->outSecOff = payloadSize; in finalizeContents()
H A DInputChunks.h97 int32_t outSecOff = 0; variable
/llvm-project-15.0.7/lld/ELF/Arch/
H A DX86_64.cpp189 uint64_t addrLoc = is.getOutputSection()->addr + is.outSecOff + r.offset; in isFallThruRelocation()
196 nextIS->getOutputSection()->addr + nextIS->outSecOff; in isFallThruRelocation()

12