Home
last modified time | relevance | path

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

12

/freebsd/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()
129 uint64_t DylibSymbol::getVA() const { in getVA() function in DylibSymbol
130 return isInStubs() ? getStubVA() : Symbol::getVA(); in getVA()
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;
266 uint64_t getVA() const override;
H A DInputSection.cpp91 uint64_t InputSection::getVA(uint64_t off) const { in getVA() function in InputSection
103 return sym->getVA(); in resolveSymbolVA()
232 minuendVA = toSym->getVA() + minuend.addend; in writeTo()
236 minuendVA = referentIsec->getVA(minuend.addend); in writeTo()
238 referentVA = minuendVA - fromSym->getVA(); in writeTo()
263 referentVA = referentIsec->getVA(r.addend); in writeTo()
270 target->relocateOne(loc, r, referentVA, getVA() + r.offset); in writeTo()
H A DSyntheticSections.cpp284 return a.isec->getVA(a.offset) < b.isec->getVA(b.offset); in finalizeContents()
381 writeChainedRebase(buf, sym->getVA() + addend); in writeChainedFixup()
391 write64le(&buf[i * target->wordSize], defined->getVA()); in writeTo()
613 return a.target.getVA() < b.target.getVA(); in sortBindings()
617 return a.second[0].target.getVA() < b.second[0].target.getVA(); in sortBindings()
957 auto selrefAddr = selRef->getVA(0); in writeTo()
988 write64le(buf + off, sym->getVA()); in writeTo()
1105 {static_cast<uint32_t>(isec->getVA(it->offset - beginAddr) - in collectDataInCodeEntries()
1143 addrs.push_back(defined->getVA()); in finalizeContents()
1276 symStab.value = defined->getVA(); in emitStabs()
[all …]
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 DInputSection.h51 uint64_t getVA(uint64_t off) const;
112 uint64_t getVA() const { return InputSection::getVA(0); } in getVA() function
H A DSyntheticSections.h126 uint64_t getVA(uint32_t gotIndex) const { in getVA() function
150 uint64_t getVA() const { return isec->getVA(offset); } in getVA() function
291 uint64_t getVA(uint32_t stubsIndex) const { in getVA() function
365 uint64_t getVA(uint32_t index) const { in getVA() function
/freebsd/contrib/llvm-project/lld/ELF/
H A DInputSection.cpp223 uint64_t SectionBase::getVA(uint64_t offset) const { in getVA() function in SectionBase
454 p->r_offset = sec->getVA(rel.offset); in copyRelocations()
510 p->r_addend = sym.getVA(addend) - section->getOutputSection()->addr; in copyRelocations()
687 return s.getVA(0) + config->wordsize * 2 + in getTlsTpOffset()
695 return s.getVA(0) + (tls->p_vaddr & (tls->p_align - 1)) - 0x7000; in getTlsTpOffset()
703 return s.getVA(0) + (tls->p_vaddr & (tls->p_align - 1)); in getTlsTpOffset()
711 return s.getVA(0) - tls->p_memsz - in getTlsTpOffset()
729 return sym.getVA(a); in getRelocTargetVA()
735 return sym.getVA(a) - getARMStaticBase(sym); in getRelocTargetVA()
748 return in.got->getVA() + a - p; in getRelocTargetVA()
[all …]
H A DThunks.cpp426 return destination.getVA() - (getThunkTargetSym()->getVA() + 4); in computeOffset()
510 uint64_t v = s.isInPlt() ? s.getPltVA() : s.getVA(a); in getAArch64ThunkDestVA()
518 uint64_t p = getThunkTargetSym()->getVA(); in getMayUseShortThunk()
529 uint64_t p = getThunkTargetSym()->getVA(); in writeTo()
567 uint64_t p = getThunkTargetSym()->getVA(); in writeLong()
582 uint64_t v = s.isInPlt() ? s.getPltVA() : s.getVA(); in getARMThunkDestVA()
596 uint64_t p = getThunkTargetSym()->getVA(); in getMayUseShortThunk()
609 uint64_t p = getThunkTargetSym()->getVA(); in writeTo()
639 uint64_t p = getThunkTargetSym()->getVA() & ~1; in getMayUseShortThunk()
652 uint64_t p = getThunkTargetSym()->getVA(); 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.cpp559 uint64_t va = getPartition().ehFrameHdr->getVA(); in getFdeData()
692 return getVA() + getTlsDescOffset(sym); in getTlsDescAddr()
696 return this->getVA() + b.getTlsGdIdx() * config->wordsize; in getGlobalDynAddr()
744 g.local16.insert({{nullptr, getMipsPageAddr(sym.getVA(addend))}, 0}); in addEntry()
803 uint64_t symAddr = getMipsPageAddr(sym.getVA(addend)); in getPageEntryOffset()
806 index = g.local16.lookup({nullptr, getMipsPageAddr(sym.getVA(addend))}); in getPageEntryOffset()
1093 return ElfSym::mipsGp->getVA(0); in getGp()
1094 return getVA() + gots[f->mipsGotIndex].startIndex * config->wordsize + 0x7ff0; in getGp()
1117 va = s->getVA(a); in writeTo()
1325 entries.emplace_back(tag, sec.getVA()); in computeContents()
[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/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()
252 uint64_t offset = in.gotPlt->getVA() - in.plt->getVA() - 16; in writePltHeader()
280 uint64_t offset = in.gotPlt->getVA() - in.plt->getVA() - 4; in writePltHeader()
404 if (s.isFunc() && expr == R_PC && (s.getVA() & 1)) in needsThunk()
408 uint64_t dst = (expr == R_PLT_PC) ? s.getPltVA() : s.getVA(); in needsThunk()
410 (!config->armHasBlx && (s.getVA() & 1)); in needsThunk()
417 (s.isFunc() && (s.getVA() & 1) == 0)) in needsThunk()
[all …]
H A DX86_64.cpp414 write64le(buf, mainPart->dynamic->getVA()); in writeGotPltHeader()
425 write64le(buf, s.getVA()); in writeIgotPlt()
435 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
436 uint64_t plt = in.ibtPlt ? in.ibtPlt->getVA() : in.plt->getVA(); in writePltHeader()
452 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16); in writePlt()
1076 in.ibtPlt->getVA() + IBTPltHeaderSize + s.getPltIdx() * pltEntrySize; in writeGotPlt()
1165 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
1166 uint64_t plt = in.plt->getVA(); in writePltHeader()
1183 uint64_t off = pltEntryAddr - in.plt->getVA(); in writePlt()
1224 write32le(buf + 8, in.plt->getVA() - pltEntryAddr - 12); in writePlt()
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()
470 int64_t displace = SignExtend64(val - gp->getVA(), bits); in relocate()
662 auto val = rel.sym->getVA(rel.addend) - rel1.sym->getVA(rel1.addend); in relocateAlloc()
742 (r.expr == R_PLT_PC ? sym.getPltVA() : sym.getVA()) + r.addend; in relaxCall()
[all …]
H A DAArch64.cpp325 write64(buf, in.plt->getVA()); in writeGotPlt()
330 write64(buf, s.getVA()); in writeIgotPlt()
346 uint64_t got = in.gotPlt->getVA(); in writePltHeader()
347 uint64_t plt = in.plt->getVA(); in writePltHeader()
386 uint64_t dst = expr == R_PLT_PC ? s.getPltVA() : s.getVA(a); in needsThunk()
777 int64_t val = sym.getVA() - (secAddr + addRel.offset); in tryRelaxAdrpAdd()
843 getAArch64Page(sym.getVA()) - getAArch64Page(secAddr + adrpRel.offset); in tryRelaxAdrpLdr()
858 SignExtend64(getAArch64Page(sym.getVA()) - in tryRelaxAdrpLdr()
861 target->relocate(buf + addRel.offset, addRel, SignExtend64(sym.getVA(), 64)); in tryRelaxAdrpLdr()
1004 uint64_t got = in.gotPlt->getVA(); in writePltHeader()
[all …]
H A DLoongArch.cpp311 write64le(buf, in.plt->getVA()); in writeGotPlt()
313 write32le(buf, in.plt->getVA()); in writeGotPlt()
319 write64le(buf, s.getVA()); in writeIgotPlt()
321 write32le(buf, s.getVA()); in writeIgotPlt()
344 uint32_t offset = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
747 const uint64_t secAddr = sec.getVA(); in relax()
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 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.cpp376 uint64_t off = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
H A DPPC64.cpp213 uint64_t tocVA = in.got->getVA(); in getPPC64TocBase()
407 uint64_t tocRelative = d->getVA(addend) - getPPC64TocBase(); in tryRelaxPPC64TocIndirection()
1158 int64_t gotPltOffset = in.gotPlt->getVA() - (in.plt->getVA() + 8); in writePltHeader()
1454 s.getVA(a) + in needsThunk()
/freebsd/contrib/llvm-project/lld/MachO/Arch/
H A DARM64.cpp143 objcMsgSendAddr = d->getVA(); in writeObjCMsgSendStub()
374 uint64_t addr1 = isec->getVA() + offset1; in applyAdrpAdd()
402 uint64_t page1 = pageBits(offset1 + isec->getVA()) + adrp1.addend; in applyAdrpAdrp()
403 uint64_t page2 = pageBits(offset2 + isec->getVA()) + adrp2.addend; in applyAdrpAdrp()
430 uint64_t addr1 = isec->getVA() + offset1; in applyAdrpLdr()
431 uint64_t addr2 = isec->getVA() + offset2; in applyAdrpLdr()
486 uint64_t addr1 = isec->getVA() + offset1; in applyAdrpAddLdr()
487 uint64_t addr3 = isec->getVA() + offset3; in applyAdrpAddLdr()
561 uint64_t addr1 = isec->getVA() + offset1; in applyAdrpLdrGotLdr()
562 uint64_t addr2 = isec->getVA() + offset2; in applyAdrpLdrGotLdr()

12