Home
last modified time | relevance | path

Searched refs:gotPlt (Results 1 – 16 of 16) sorted by relevance

/freebsd/contrib/llvm-project/lld/ELF/Arch/
H A DX86.cpp211 uint32_t gotPlt = ctx.in.gotPlt->getVA(); in writePltHeader() local
212 write32le(buf + 2, gotPlt + 4); in writePltHeader()
213 write32le(buf + 8, gotPlt + 8); in writePltHeader()
226 write32le(buf + 2, sym.getGotPltVA(ctx) - ctx.in.gotPlt->getVA()); in writePlt()
554 write32le(buf + 6, sym.getGotPltVA(ctx) - ctx.in.gotPlt->getVA()); in writePlt()
651 uint32_t ebx = ctx.in.gotPlt->getVA(); in writePlt()
691 uint32_t gotPlt = ctx.in.gotPlt->getVA(); in writePltHeader() local
692 write32le(buf + 2, gotPlt + 4); in writePltHeader()
693 write32le(buf + 8, gotPlt + 8); in writePltHeader()
H A DMips.cpp259 uint64_t gotPlt = ctx.in.gotPlt->getVA(); in writePltHeader() local
276 relocateNoSym(buf, R_MICROMIPS_PC19_S2, gotPlt - plt); in writePltHeader()
281 relocateNoSym(buf, R_MICROMIPS_PC23_S2, gotPlt - plt); in writePltHeader()
313 uint64_t gotPlt = ctx.in.gotPlt->getVA(); in writePltHeader() local
314 writeValue(ctx, buf, gotPlt + 0x8000, 16, 16); in writePltHeader()
315 writeValue(ctx, buf + 4, gotPlt, 16, 0); in writePltHeader()
316 writeValue(ctx, buf + 8, gotPlt, 16, 0); in writePltHeader()
H A DX86_64.cpp451 uint64_t gotPlt = ctx.in.gotPlt->getVA(); in writePltHeader() local
453 write32le(buf + 2, gotPlt - plt + 2); // GOTPLT+8 in writePltHeader()
454 write32le(buf + 8, gotPlt - plt + 4); // GOTPLT+16 in writePltHeader()
1341 uint64_t gotPlt = ctx.in.gotPlt->getVA(); in writePltHeader() local
1343 write32le(buf + 2, gotPlt - plt - 6 + 8); in writePltHeader()
1344 write32le(buf + 9, gotPlt - plt - 13 + 16); in writePltHeader()
H A DARM.cpp229 uint64_t gotPlt = ctx.in.gotPlt->getVA(); in writePltHeaderLong() local
231 write32(ctx, buf + 16, gotPlt - l1 - 8); in writePltHeaderLong()
255 uint64_t offset = ctx.in.gotPlt->getVA() - ctx.in.plt->getVA() - 16; in writePltHeader()
283 uint64_t offset = ctx.in.gotPlt->getVA() - ctx.in.plt->getVA() - 4; in writePltHeader()
H A DAArch64.cpp393 uint64_t got = ctx.in.gotPlt->getVA(); in writePltHeader()
1131 uint64_t got = ctx.in.gotPlt->getVA(); in writePltHeader()
H A DHexagon.cpp428 uint64_t off = ctx.in.gotPlt->getVA() - ctx.in.plt->getVA(); in writePltHeader()
H A DPPC64.cpp1158 int64_t gotPltOffset = ctx.in.gotPlt->getVA() - (ctx.in.plt->getVA() + 8); in writePltHeader()
H A DLoongArch.cpp366 uint32_t offset = ctx.in.gotPlt->getVA() - ctx.in.plt->getVA(); in writePltHeader()
H A DRISCV.cpp233 uint32_t offset = ctx.in.gotPlt->getVA() - ctx.in.plt->getVA(); in writePltHeader()
/freebsd/contrib/llvm-project/lld/ELF/
H A DInputSection.cpp805 return ctx.in.gotPlt->getVA() + a - p; in getRelocTargetVA()
810 return r.sym->getVA(ctx, a) - ctx.in.gotPlt->getVA(); in getRelocTargetVA()
813 return r.sym->getGotVA(ctx) + a - ctx.in.gotPlt->getVA(); in getRelocTargetVA()
926 return r.sym->getPltVA(ctx) + a - ctx.in.gotPlt->getVA(); in getRelocTargetVA()
980 return ctx.in.got->getTlsDescAddr(*r.sym) + a - ctx.in.gotPlt->getVA(); in getRelocTargetVA()
991 return ctx.in.got->getGlobalDynAddr(*r.sym) + a - ctx.in.gotPlt->getVA(); in getRelocTargetVA()
999 ctx.in.gotPlt->getVA(); in getRelocTargetVA()
H A DThunks.cpp557 PPC64R12SetupStub(Ctx &ctx, Symbol &dest, bool gotPlt) in PPC64R12SetupStub() argument
558 : Thunk(ctx, dest, 0), gotPlt(gotPlt) { in PPC64R12SetupStub()
568 bool gotPlt; member in __anon1c3bcd6e0111::PPC64R12SetupStub
1509 (gotPlt ? destination.getGotPltVA(ctx) : destination.getVA(ctx)) - in writeTo()
1520 (gotPlt ? PLD_R12_NO_DISP : PADDI_R12_NO_DISP) | imm); in writeTo()
1530 if (gotPlt) in writeTo()
1541 addSymbol(ctx.saver.save((gotPlt ? "__plt_pcrel_" : "__gep_setup_") + in addSymbols()
H A DRelocations.cpp884 static void addPltEntry(Ctx &ctx, PltSection &plt, GotPltSection &gotPlt, in addPltEntry() argument
887 gotPlt.addEntry(sym); in addPltEntry()
888 rel.addReloc({type, &gotPlt, sym.getGotPltOffset(ctx), in addPltEntry()
1585 ctx.in.gotPlt->hasGotPltOffRel.store(true, std::memory_order_relaxed); in scanOne()
1866 addPltEntry(ctx, *ctx.in.plt, *ctx.in.gotPlt, *ctx.in.relaPlt, in postScanRelocations()
2556 addPltEntry(ctx, *ctx.in.plt, *ctx.in.gotPlt, *ctx.in.relaPlt, in hexagonTLSSymbolUpdate()
H A DSymbols.cpp166 return ctx.in.gotPlt->getVA() + getGotPltOffset(ctx); in getGotPltVA()
H A DSyntheticSections.cpp1487 addInSec(DT_MIPS_PLTGOT, *ctx.in.gotPlt); in computeContents()
1502 addInSec(DT_PLTGOT, *ctx.in.gotPlt); in computeContents()
1513 addInSec(DT_PLTGOT, *ctx.in.gotPlt); in computeContents()
1741 if (ctx.in.relaPlt.get() == this && ctx.in.gotPlt->getParent()) { in finalizeContents()
1743 getParent()->info = ctx.in.gotPlt->getParent()->sectionIndex; in finalizeContents()
4921 ctx.in.gotPlt = std::make_unique<GotPltSection>(ctx); in createSyntheticSections()
4922 add(*ctx.in.gotPlt); in createSyntheticSections()
4943 ctx.in.gotPlt->hasGotPltOffRel = true; in createSyntheticSections()
H A DConfig.h578 std::unique_ptr<GotPltSection> gotPlt; member
H A DWriter.cpp614 if (sec == ctx.in.gotPlt->getParent()) in isRelroSection()
845 InputSection *sec = ctx.in.gotPlt.get(); in setReservedSymbolSections()
2090 finalizeSynthetic(ctx, ctx.in.gotPlt.get()); in finalizeSections()