Home
last modified time | relevance | path

Searched refs:getVA (Results 1 – 25 of 43) sorted by relevance

12

/freebsd-14.2/contrib/llvm-project/lld/MachO/
H A DSymbols.cpp48 uint64_t Symbol::getStubVA() const { return in.stubs->getVA(stubsIndex); } in getStubVA()
50 return in.lazyPointers->getVA(stubsIndex); in getLazyPtrVA()
52 uint64_t Symbol::getGotVA() const { return in.got->getVA(gotIndex); } in getGotVA()
53 uint64_t Symbol::getTlvVA() const { return in.tlvPointers->getVA(gotIndex); } in getTlvVA()
88 uint64_t Defined::getVA() const { in getVA() function in Defined
105 return isec->getVA(value); in getVA()
125 uint64_t DylibSymbol::getVA() const { in getVA() function in DylibSymbol
126 return isInStubs() ? getStubVA() : Symbol::getVA(); in getVA()
H A DInputSection.cpp45 uint64_t InputSection::getVA(uint64_t off) const { in getVA() function in InputSection
57 return sym->getVA(); in resolveSymbolVA()
188 minuendVA = toSym->getVA() + minuend.addend; in writeTo()
192 minuendVA = referentIsec->getVA(minuend.addend); in writeTo()
194 referentVA = minuendVA - fromSym->getVA(); in writeTo()
219 referentVA = referentIsec->getVA(r.addend); in writeTo()
226 target->relocateOne(loc, r, referentVA, getVA() + r.offset); in writeTo()
H A DSymbols.h59 virtual uint64_t getVA() const { return 0; } in getVA() function
82 return isInStubs() ? getStubVA() : getVA(); in resolveBranchVA()
84 uint64_t resolveGotVA() const { return isInGot() ? getGotVA() : getVA(); } in resolveGotVA()
85 uint64_t resolveTlvVA() const { return isInGot() ? getTlvVA() : getVA(); } in resolveTlvVA()
134 uint64_t getVA() const override;
261 uint64_t getVA() const override;
H A DInputSection.h51 uint64_t getVA(uint64_t off) const;
112 uint64_t getVA() const { return InputSection::getVA(0); } in getVA() function
H A DConcatOutputSection.cpp171 uint64_t isecVA = inputs[callIdx]->getVA(); in estimateStubsInRangeVA()
240 uint64_t isecVA = isec->getVA(); in finalize()
309 uint64_t thunkVA = thunkInfo.isec->getVA(); in finalize()
H A DSyntheticSections.h125 uint64_t getVA(uint32_t gotIndex) const { in getVA() function
149 uint64_t getVA() const { return isec->getVA(offset); } in getVA() function
290 uint64_t getVA(uint32_t stubsIndex) const { in getVA() function
350 uint64_t getVA(uint32_t index) const { in getVA() function
H A DSyntheticSections.cpp283 return a.isec->getVA(a.offset) < b.isec->getVA(b.offset); in finalizeContents()
380 writeChainedRebase(buf, sym->getVA() + addend); in writeChainedFixup()
390 write64le(&buf[i * target->wordSize], defined->getVA()); in writeTo()
602 return a.target.getVA() < b.target.getVA(); in sortBindings()
606 return a.second[0].target.getVA() < b.second[0].target.getVA(); in sortBindings()
898 stubOffset, in.objcSelrefs->getVA(), i, in writeTo()
928 write64le(buf + off, sym->getVA()); in writeTo()
1080 addrs.push_back(defined->getVA()); in finalizeContents()
1208 symStab.value = defined->getVA(); in emitStabs()
1359 nList->n_value = defined->getVA(); in writeTo()
[all …]
/freebsd-14.2/contrib/llvm-project/lld/ELF/
H A DInputSection.cpp662 return s.getVA(0) - tls->p_memsz - in getTlsTpOffset()
679 return sym.getVA(a); in getRelocTargetVA()
698 return in.got->getVA() + a - p; in getRelocTargetVA()
703 return sym.getVA(a) - in.got->getVA(); in getRelocTargetVA()
705 return sym.getVA(a) - in.gotPlt->getVA(); in getRelocTargetVA()
801 dest = sym.getVA(a); in getRelocTargetVA()
803 dest = sym.getVA(a); in getRelocTargetVA()
824 uint64_t symVA = sym.getVA(a); in getRelocTargetVA()
843 return sym.getVA(a) - p; in getRelocTargetVA()
879 return in.got->getVA() + in.got->getTlsIndexOff() + a - in.gotPlt->getVA(); in getRelocTargetVA()
[all …]
H A DThunks.cpp426 return destination.getVA() - (getThunkTargetSym()->getVA() + 4); in computeOffset()
518 uint64_t p = getThunkTargetSym()->getVA(); in getMayUseShortThunk()
529 uint64_t p = getThunkTargetSym()->getVA(); in writeTo()
567 uint64_t p = getThunkTargetSym()->getVA(); in writeLong()
596 uint64_t p = getThunkTargetSym()->getVA(); in getMayUseShortThunk()
966 uint64_t s = destination.getVA(); in writeTo()
988 uint64_t s = destination.getVA(); in writeTo()
1013 uint64_t s = destination.getVA(); in writeTo()
1055 offset = gotPltVA - in.got->getVA(); in writePPC32PltCallStub()
1102 uint32_t d = destination.getVA(addend); in writeTo()
[all …]
H A DARMErrataFix.cpp149 return patchee->getVA(patcheeOffset); in getBranchAddr()
199 uint64_t p = getVA(pcBias); in writeTo()
208 uint64_t sourceAddr = isec->getVA(0) + off; in branchDestInFirstRegion()
215 uint64_t dst = (r->expr == R_PLT_PC) ? r->sym->getPltVA() : r->sym->getVA(); in branchDestInFirstRegion()
237 isBcc(instr) ? R_ARM_THM_JUMP19 : R_ARM_THM_JUMP24, isec->getVA(off), in patchInRange()
238 isec->getVA() + isec->getSize() + 0x100); in patchInRange()
257 uint64_t isecAddr = isec->getVA(0); in scanCortexA8Errata657417()
417 utohexstr(isec->getVA(sr.off)) + " in unpatched output."); in implementPatch()
444 : sr.rel->sym->getVA(); in implementPatch()
H A DMapFile.cpp71 ret[dr->section].emplace_back(dr, dr->getVA()); in getSectionSyms()
98 uint64_t vma = syms[i]->getVA(); in getSymbolStrings()
99 uint64_t lma = osec ? osec->getLMA() + vma - osec->getVA(0) : 0; in getSymbolStrings()
165 uint64_t lma = osec ? osec->getLMA() + assign->addr - osec->getVA(0) : 0; in writeMapFile()
184 writeHeader(os, isec->getVA(), osec->getLMA() + isec->outSecOff, in writeMapFile()
204 osec->getLMA() + assign->addr - osec->getVA(0), in writeMapFile()
H A DSymbols.cpp116 uint64_t va = isec->getVA(offset); in getSymVA()
159 uint64_t Symbol::getVA(int64_t addend) const { in getVA() function in Symbol
165 return in.igotPlt->getVA() + getGotPltOffset(); in getGotVA()
166 return in.got->getVA() + getGotOffset(); in getGotVA()
175 return in.igotPlt->getVA() + getGotPltOffset(); in getGotPltVA()
176 return in.gotPlt->getVA() + getGotPltOffset(); in getGotPltVA()
187 ? in.iplt->getVA() + getPltIdx() * target->ipltEntrySize in getPltVA()
188 : in.plt->getVA() + in.plt->headerSize + in getPltVA()
H A DSyntheticSections.cpp1066 return ElfSym::mipsGp->getVA(0); in getGp()
1090 va = s->getVA(a); in writeTo()
1495 addInt(DT_INIT, b->getVA()); in computeContents()
1534 in.mipsRldMap->getVA() - (getVA() + entries.size() * entsize)); in computeContents()
3487 int64_t off = static_cast<int64_t>(isec->getVA() - getVA()); in finalizeContents()
3573 uint64_t s = isec->getVA(); in writeTo()
3583 uint64_t p = getVA() + offset; in writeTo()
3704 assert(sym->getVA()); in writeTo()
3826 uint64_t va = getVA(); in writeTo()
3834 write32(buf + 8, next->getVA() - partitions[i].elfHeader->getVA()); in writeTo()
[all …]
H A DAArch64ErrataFix.cpp339 uint64_t isecAddr = isec->getVA(0); in scanCortexA53Errata843419()
407 return patchee->getVA(patcheeOffset); in getLDSTAddr()
420 uint64_t p = patchSym->getVA() + 4; in writeTo()
598 uint64_t startAddr = isec->getVA(off); in patchInputSectionDescription()
/freebsd-14.2/contrib/llvm-project/lld/ELF/Arch/
H A DX86.cpp167 write32le(buf, mainPart->dynamic->getVA()); in writeGotPltHeader()
178 write32le(buf, s.getVA()); in writeIgotPlt()
206 uint32_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
221 write32le(buf + 2, sym.getGotPltVA() - in.gotPlt->getVA()); in writePlt()
233 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16); in writePlt()
535 in.ibtPlt->getVA() + IBTPltHeaderSize + s.getPltIdx() * pltEntrySize; in writeGotPlt()
548 write32le(buf + 6, sym.getGotPltVA() - in.gotPlt->getVA()); in writePlt()
645 uint32_t ebx = in.gotPlt->getVA(); in writePlt()
646 unsigned off = pltEntryAddr - in.plt->getVA(); in writePlt()
685 uint32_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
[all …]
H A DARM.cpp207 write32(buf, in.plt->getVA()); in writeGotPlt()
212 write32(buf, s.getVA()); in writeIgotPlt()
226 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeaderLong()
227 uint64_t l1 = in.plt->getVA() + 8; in writePltHeaderLong()
245 uint64_t offset = in.gotPlt->getVA() - in.plt->getVA() - 4; in writePltHeader()
328 if (s.isFunc() && expr == R_PC && (s.getVA() & 1)) in needsThunk()
334 (!config->armHasBlx && (s.getVA() & 1)); in needsThunk()
1313 s->acleSeSym->getVA() - in writeTo()
1342 : getVA(); in finalizeContents()
1345 if ((getVA() & ~1) != (addr & ~1)) { in finalizeContents()
[all …]
H A DRISCV.cpp203 write64le(buf, mainPart->dynamic->getVA()); in writeGotHeader()
205 write32le(buf, mainPart->dynamic->getVA()); in writeGotHeader()
210 write64le(buf, in.plt->getVA()); in writeGotPlt()
212 write32le(buf, in.plt->getVA()); in writeGotPlt()
218 write64le(buf, s.getVA()); in writeIgotPlt()
220 write32le(buf, s.getVA()); in writeIgotPlt()
233 uint32_t offset = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
662 auto val = rel.sym->getVA(rel.addend) - rel1.sym->getVA(rel1.addend); in relocateAlloc()
764 uint64_t val = r.sym->getVA(r.addend); in relaxTlsLe()
796 if (!isInt<12>(r.sym->getVA(r.addend) - gp->getVA())) in relaxHi20Lo12()
[all …]
H A DAArch64.cpp236 write64(buf, in.plt->getVA()); in writeGotPlt()
241 write64(buf, s.getVA()); in writeIgotPlt()
257 uint64_t got = in.gotPlt->getVA(); in writePltHeader()
258 uint64_t plt = in.plt->getVA(); in writePltHeader()
297 uint64_t dst = expr == R_PLT_PC ? s.getPltVA() : s.getVA(a); in needsThunk()
677 int64_t val = sym.getVA() - (secAddr + addRel.offset); in tryRelaxAdrpAdd()
743 getAArch64Page(sym.getVA()) - getAArch64Page(secAddr + adrpRel.offset); in tryRelaxAdrpLdr()
758 SignExtend64(getAArch64Page(sym.getVA()) - in tryRelaxAdrpLdr()
761 target->relocate(buf + addRel.offset, addRel, SignExtend64(sym.getVA(), 64)); in tryRelaxAdrpLdr()
904 uint64_t got = in.gotPlt->getVA(); in writePltHeader()
[all …]
H A DX86_64.cpp411 write64le(buf, mainPart->dynamic->getVA()); in writeGotPltHeader()
422 write64le(buf, s.getVA()); in writeIgotPlt()
432 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
433 uint64_t plt = in.ibtPlt ? in.ibtPlt->getVA() : in.plt->getVA(); in writePltHeader()
449 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16); in writePlt()
1073 in.ibtPlt->getVA() + IBTPltHeaderSize + s.getPltIdx() * pltEntrySize; in writeGotPlt()
1162 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
1163 uint64_t plt = in.plt->getVA(); in writePltHeader()
1180 uint64_t off = pltEntryAddr - in.plt->getVA(); in writePlt()
1221 write32le(buf + 8, in.plt->getVA() - pltEntryAddr - 12); in writePlt()
H A DSystemZ.cpp182 write64be(buf, mainPart->dynamic->getVA()); in writeGotHeader()
191 write64be(buf, s.getVA()); in writeIgotPlt()
206 uint64_t got = in.got->getVA(); in writePltHeader()
207 uint64_t plt = in.plt->getVA(); in writePltHeader()
231 write32be(buf + 24, (in.plt->getVA() - pltEntryAddr - 22) >> 1); in writePlt()
H A DPPC.cpp78 uint32_t glink = in.plt->getVA(); // VA of .glink in writePPC32GlinkSection()
104 uint32_t got = in.got->getVA(); in writePPC32GlinkSection()
190 write32(buf, mainPart->dynamic->getVA()); in writeGotHeader()
195 write32(buf, in.plt->getVA() + in.plt->headerSize + 4 * s.getPltIdx()); in writeGotPlt()
206 return !PPC::inBranchRange(type, branchAddr, s.getVA(a)); in needsThunk()
H A DLoongArch.cpp302 write64le(buf, in.plt->getVA()); in writeGotPlt()
304 write32le(buf, in.plt->getVA()); in writeGotPlt()
310 write64le(buf, s.getVA()); in writeIgotPlt()
312 write32le(buf, s.getVA()); in writeIgotPlt()
335 uint32_t offset = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
688 const uint64_t secAddr = sec.getVA(); in relax()
H A DMips.cpp99 if (!s.isPreemptible && !(s.getVA() & 0x1)) in getRelExpr()
208 uint64_t va = in.plt->getVA(); in writeGotPlt()
260 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
261 uint64_t plt = in.plt->getVA(); in writePltHeader()
313 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
H A DHexagon.cpp364 uint64_t off = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
/freebsd-14.2/contrib/llvm-project/lld/MachO/Arch/
H A DARM64.cpp145 objcMsgSendAddr = d->getVA(); in writeObjCMsgSendStub()
376 uint64_t addr1 = isec->getVA() + offset1; in applyAdrpAdd()
404 uint64_t page1 = pageBits(offset1 + isec->getVA()) + adrp1.addend; in applyAdrpAdrp()
405 uint64_t page2 = pageBits(offset2 + isec->getVA()) + adrp2.addend; in applyAdrpAdrp()
432 uint64_t addr1 = isec->getVA() + offset1; in applyAdrpLdr()
433 uint64_t addr2 = isec->getVA() + offset2; in applyAdrpLdr()
488 uint64_t addr1 = isec->getVA() + offset1; in applyAdrpAddLdr()
489 uint64_t addr3 = isec->getVA() + offset3; in applyAdrpAddLdr()
563 uint64_t addr1 = isec->getVA() + offset1; in applyAdrpLdrGotLdr()
564 uint64_t addr2 = isec->getVA() + offset2; in applyAdrpLdrGotLdr()

12