Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/lld/MachO/
H A DSymbols.cpp39 uint64_t Symbol::getStubVA() const { return in.stubs->getVA(stubsIndex); } in getStubVA()
40 uint64_t Symbol::getGotVA() const { return in.got->getVA(gotIndex); } in getGotVA()
41 uint64_t Symbol::getTlvVA() const { return in.tlvPointers->getVA(gotIndex); } in getTlvVA()
76 uint64_t Defined::getVA() const { in getVA() function in Defined
93 return isec->getVA(value); in getVA()
109 uint64_t DylibSymbol::getVA() const { in getVA() function in DylibSymbol
110 return isInStubs() ? getStubVA() : Symbol::getVA(); in getVA()
H A DMapFile.cpp63 return a->getVA() != b->getVA() ? a->getVA() < b->getVA() in getSymbols()
164 os << format("0x%08llX\t[%3u] %s\n", sym->getVA(), in writeMapFile()
H A DSymbols.h59 virtual uint64_t getVA() const { return 0; } in getVA() function
81 return isInStubs() ? getStubVA() : getVA(); in resolveBranchVA()
83 uint64_t resolveGotVA() const { return isInGot() ? getGotVA() : getVA(); } in resolveGotVA()
84 uint64_t resolveTlvVA() const { return isInGot() ? getTlvVA() : getVA(); } in resolveTlvVA()
133 uint64_t getVA() const override;
255 uint64_t getVA() const override;
H A DInputSection.cpp43 uint64_t InputSection::getVA(uint64_t off) const { in getVA() function in InputSection
55 return sym->getVA(); in resolveSymbolVA()
193 minuendVA = toSym->getVA() + minuend.addend; in writeTo()
197 minuendVA = referentIsec->getVA(minuend.addend); in writeTo()
199 referentVA = minuendVA - fromSym->getVA(); in writeTo()
222 referentVA = referentIsec->getVA(r.addend); in writeTo()
224 target->relocateOne(loc, r, referentVA, getVA() + r.offset); in writeTo()
H A DConcatOutputSection.cpp171 uint64_t isecVA = inputs[callIdx]->getVA(); in estimateStubsInRangeVA()
240 uint64_t isecVA = isec->getVA(); in finalize()
304 uint64_t thunkVA = thunkInfo.isec->getVA(); in finalize()
H A DInputSection.h51 uint64_t getVA(uint64_t off) const;
107 uint64_t getVA() const { return InputSection::getVA(0); } in getVA() function
H A DSyntheticSections.cpp279 return a.isec->getVA(a.offset) < b.isec->getVA(b.offset); in finalizeContents()
335 write64le(&buf[i * target->wordSize], defined->getVA()); in writeTo()
546 return a.target.getVA() < b.target.getVA(); in sortBindings()
550 return a.second[0].target.getVA() < b.second[0].target.getVA(); in sortBindings()
744 write64le(buf + off, sym->getVA()); in writeTo()
854 {static_cast<uint32_t>(isec->getVA(it->offset - beginAddr) - in collectDataInCodeEntries()
888 addrs.push_back(defined->getVA()); in finalizeContents()
1017 symStab.value = defined->getVA(); in emitStabs()
1168 nList->n_value = defined->getVA(); in writeTo()
H A DSyntheticSections.h127 uint64_t getVA(uint32_t gotIndex) const { in getVA() function
151 uint64_t getVA() const { return isec->getVA(offset); } in getVA() function
286 uint64_t getVA(uint32_t stubsIndex) const { in getVA() function
/llvm-project-15.0.7/lld/ELF/
H A DInputSection.cpp607 return s.getVA(0) - tls->p_memsz - in getTlsTpOffset()
623 return sym.getVA(a); in getRelocTargetVA()
634 return in.got->getVA() + a - p; in getRelocTargetVA()
636 return in.gotPlt->getVA() + a - p; in getRelocTargetVA()
639 return sym.getVA(a) - in.got->getVA(); in getRelocTargetVA()
641 return sym.getVA(a) - in.gotPlt->getVA(); in getRelocTargetVA()
727 dest = sym.getVA(a); in getRelocTargetVA()
729 dest = sym.getVA(a); in getRelocTargetVA()
746 uint64_t symVA = sym.getVA(a); in getRelocTargetVA()
765 return sym.getVA(a) - p; in getRelocTargetVA()
[all …]
H A DThunks.cpp323 return destination.getVA() - (getThunkTargetSym()->getVA() + 4); in computeOffset()
454 uint64_t p = getThunkTargetSym()->getVA(); in writeTo()
483 uint64_t p = getThunkTargetSym()->getVA(); in getMayUseShortThunk()
727 uint64_t s = destination.getVA(); in writeTo()
749 uint64_t s = destination.getVA(); in writeTo()
774 uint64_t s = destination.getVA(); in writeTo()
816 offset = gotPltVA - in.got->getVA(); in writePPC32PltCallStub()
863 uint32_t d = destination.getVA(addend); in writeTo()
955 int64_t offset = destination.getVA() - getThunkTargetSym()->getVA(); in writeTo()
961 uint32_t off = destination.getVA(addend) - getThunkTargetSym()->getVA() - 8; 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.cpp111 uint64_t va = isec->getVA(offset); in getSymVA()
154 uint64_t Symbol::getVA(int64_t addend) const { in getVA() function in Symbol
160 return in.igotPlt->getVA() + getGotPltOffset(); in getGotVA()
161 return in.got->getVA() + getGotOffset(); in getGotVA()
170 return in.igotPlt->getVA() + getGotPltOffset(); in getGotPltVA()
171 return in.gotPlt->getVA() + getGotPltOffset(); in getGotPltVA()
182 ? in.iplt->getVA() + getPltIdx() * target->ipltEntrySize in getPltVA()
183 : in.plt->getVA() + in.plt->headerSize + in getPltVA()
H A DSyntheticSections.cpp1090 return ElfSym::mipsGp->getVA(0); in getGp()
1114 va = s->getVA(a); in writeTo()
1497 addInt(DT_INIT, b->getVA()); in computeContents()
1500 addInt(DT_FINI, b->getVA()); in computeContents()
1536 in.mipsRldMap->getVA() - (getVA() + entries.size() * entsize)); in computeContents()
3487 int64_t off = static_cast<int64_t>(isec->getVA() - getVA()); in finalizeContents()
3566 uint64_t s = isec->getVA(); in writeTo()
3575 uint64_t p = getVA() + offset; in writeTo()
3696 assert(sym->getVA()); in writeTo()
3818 uint64_t va = getVA(); in writeTo()
[all …]
H A DAArch64ErrataFix.cpp338 uint64_t isecAddr = isec->getVA(0); in scanCortexA53Errata843419()
406 return patchee->getVA(patcheeOffset); in getLDSTAddr()
419 uint64_t p = patchSym->getVA() + 4; in writeTo()
598 uint64_t startAddr = isec->getVA(off); in patchInputSectionDescription()
/llvm-project-15.0.7/lld/ELF/Arch/
H A DX86.cpp176 write32le(buf, mainPart->dynamic->getVA()); in writeGotPltHeader()
187 write32le(buf, s.getVA()); in writeIgotPlt()
215 uint32_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
230 write32le(buf + 2, sym.getGotPltVA() - in.gotPlt->getVA()); in writePlt()
242 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16); in writePlt()
504 in.ibtPlt->getVA() + IBTPltHeaderSize + s.getPltIdx() * pltEntrySize; in writeGotPlt()
517 write32le(buf + 6, sym.getGotPltVA() - in.gotPlt->getVA()); in writePlt()
614 uint32_t ebx = in.gotPlt->getVA(); in writePlt()
615 unsigned off = pltEntryAddr - in.plt->getVA(); in writePlt()
654 uint32_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
[all …]
H A DX86_64.cpp382 write64le(buf, mainPart->dynamic->getVA()); in writeGotPltHeader()
393 write64le(buf, s.getVA()); in writeIgotPlt()
403 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
404 uint64_t plt = in.ibtPlt ? in.ibtPlt->getVA() : in.plt->getVA(); in writePltHeader()
420 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16); in writePlt()
997 in.ibtPlt->getVA() + IBTPltHeaderSize + s.getPltIdx() * pltEntrySize; in writeGotPlt()
1086 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
1087 uint64_t plt = in.plt->getVA(); in writePltHeader()
1104 uint64_t off = pltEntryAddr - in.plt->getVA(); in writePlt()
1145 write32le(buf + 8, in.plt->getVA() - pltEntryAddr - 12); in writePlt()
H A DARM.cpp186 write32le(buf, in.plt->getVA()); in writeGotPlt()
191 write32le(buf, s.getVA()); in writeIgotPlt()
207 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeaderLong()
208 uint64_t l1 = in.plt->getVA() + 8; in writePltHeaderLong()
226 uint64_t offset = in.gotPlt->getVA() - in.plt->getVA() - 4; in writePltHeader()
312 if (s.isFunc() && expr == R_PC && (s.getVA() & 1)) in needsThunk()
316 uint64_t dst = (expr == R_PLT_PC) ? s.getPltVA() : s.getVA(); in needsThunk()
323 if (expr == R_PLT_PC || (s.isFunc() && (s.getVA() & 1) == 0)) in needsThunk()
327 uint64_t dst = (expr == R_PLT_PC) ? s.getPltVA() : s.getVA(); in needsThunk()
H A DAArch64.cpp214 write64(buf, in.plt->getVA()); in writeGotPlt()
230 uint64_t got = in.gotPlt->getVA(); in writePltHeader()
231 uint64_t plt = in.plt->getVA(); in writePltHeader()
270 uint64_t dst = expr == R_PLT_PC ? s.getPltVA() : s.getVA(a); in needsThunk()
637 int64_t val = sym.getVA() - (secAddr + addRel.offset); in tryRelaxAdrpAdd()
703 getAArch64Page(sym.getVA()) - getAArch64Page(secAddr + adrpRel.offset); in tryRelaxAdrpLdr()
718 SignExtend64(getAArch64Page(sym.getVA()) - in tryRelaxAdrpLdr()
721 target->relocate(buf + addRel.offset, addRel, SignExtend64(sym.getVA(), 64)); in tryRelaxAdrpLdr()
807 uint64_t got = in.gotPlt->getVA(); in writePltHeader()
808 uint64_t plt = in.plt->getVA(); in writePltHeader()
H A DRISCV.cpp177 write64le(buf, mainPart->dynamic->getVA()); in writeGotHeader()
179 write32le(buf, mainPart->dynamic->getVA()); in writeGotHeader()
184 write64le(buf, in.plt->getVA()); in writeGotPlt()
186 write32le(buf, in.plt->getVA()); in writeGotPlt()
192 write64le(buf, s.getVA()); in writeIgotPlt()
194 write32le(buf, s.getVA()); in writeIgotPlt()
207 uint32_t offset = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
557 (r.expr == R_PLT_PC ? sym.getPltVA() : sym.getVA()) + r.addend; in relaxCall()
579 uint64_t val = r.sym->getVA(r.addend); in relaxTlsLe()
606 const uint64_t secAddr = sec.getVA(); in relax()
H A DPPC.cpp79 uint32_t glink = in.plt->getVA(); // VA of .glink in writePPC32GlinkSection()
105 uint32_t got = in.got->getVA(); in writePPC32GlinkSection()
191 write32(buf, mainPart->dynamic->getVA()); in writeGotHeader()
196 write32(buf, in.plt->getVA() + in.plt->headerSize + 4 * s.getPltIdx()); in writeGotPlt()
207 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.cpp364 uint64_t off = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
/llvm-project-15.0.7/lld/MachO/Arch/
H A DARM64.cpp387 int64_t delta = rel1->referentVA - rel1->rel.offset - isec->getVA(); in applyAdrpAdd()
449 ldr.offset = rel1->referentVA - rel2->rel.offset - isec->getVA(); in applyAdrpLdr()
507 uint64_t rel3VA = hint.offset0 + hint.delta[1] + isec->getVA(); in applyAdrpLdrGotLdr()
521 int64_t adrOffset = rel1->referentVA - rel1->rel.offset - isec->getVA(); in applyAdrpLdrGotLdr()
557 literalLdr.offset = rel1->referentVA - rel2->rel.offset - isec->getVA(); in applyAdrpLdrGotLdr()
/llvm-project-15.0.7/lld/wasm/
H A DMapFile.cpp89 vma = DD->getVA(); in getSymbolStrings()
147 writeHeader(os, chunk->getVA(), offset, chunk->getSize()); in writeMapFile()

12