/freebsd/contrib/llvm-project/lld/ELF/Arch/ |
H A D | X86.cpp | 206 uint32_t gotPlt = in.gotPlt->getVA(); in writePltHeader() local 207 write32le(buf + 2, gotPlt + 4); in writePltHeader() 208 write32le(buf + 8, gotPlt + 8); in writePltHeader() 221 write32le(buf + 2, sym.getGotPltVA() - in.gotPlt->getVA()); in writePlt() 548 write32le(buf + 6, sym.getGotPltVA() - in.gotPlt->getVA()); in writePlt() 645 uint32_t ebx = in.gotPlt->getVA(); in writePlt() 685 uint32_t gotPlt = in.gotPlt->getVA(); in writePltHeader() local 686 write32le(buf + 2, gotPlt + 4); in writePltHeader() 687 write32le(buf + 8, gotPlt + 8); in writePltHeader()
|
H A D | Mips.cpp | 260 uint64_t gotPlt = 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 = in.gotPlt->getVA(); in writePltHeader() local 314 writeValue(buf, gotPlt + 0x8000, 16, 16); in writePltHeader() 315 writeValue(buf + 4, gotPlt, 16, 0); in writePltHeader() 316 writeValue(buf + 8, gotPlt, 16, 0); in writePltHeader()
|
H A D | X86_64.cpp | 435 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader() local 437 write32le(buf + 2, gotPlt - plt + 2); // GOTPLT+8 in writePltHeader() 438 write32le(buf + 8, gotPlt - plt + 4); // GOTPLT+16 in writePltHeader() 1165 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader() local 1167 write32le(buf + 2, gotPlt - plt - 6 + 8); in writePltHeader() 1168 write32le(buf + 9, gotPlt - plt - 13 + 16); in writePltHeader()
|
H A D | ARM.cpp | 226 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeaderLong() local 228 write32(buf + 16, gotPlt - l1 - 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()
|
H A D | Hexagon.cpp | 376 uint64_t off = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
|
H A D | AArch64.cpp | 346 uint64_t got = in.gotPlt->getVA(); in writePltHeader() 1004 uint64_t got = in.gotPlt->getVA(); in writePltHeader()
|
H A D | LoongArch.cpp | 344 uint32_t offset = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
|
H A D | PPC64.cpp | 1158 int64_t gotPltOffset = in.gotPlt->getVA() - (in.plt->getVA() + 8); in writePltHeader()
|
H A D | RISCV.cpp | 233 uint32_t offset = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
|
/freebsd/contrib/llvm-project/lld/ELF/ |
H A D | Thunks.cpp | 436 PPC64R12SetupStub(Symbol &dest, bool gotPlt) in PPC64R12SetupStub() argument 437 : Thunk(dest, 0), gotPlt(gotPlt) { in PPC64R12SetupStub() 447 bool gotPlt; member in __anon1c3bcd6e0111::PPC64R12SetupStub 1194 int64_t offset = (gotPlt ? destination.getGotPltVA() : destination.getVA()) - in writeTo() 1204 buf, (gotPlt ? PLD_R12_NO_DISP : PADDI_R12_NO_DISP) | imm); in writeTo() 1214 if (gotPlt) in writeTo() 1225 addSymbol(saver().save((gotPlt ? "__plt_pcrel_" : "__gep_setup_") + in addSymbols()
|
H A D | InputSection.cpp | 750 return in.gotPlt->getVA() + a - p; in getRelocTargetVA() 755 return sym.getVA(a) - in.gotPlt->getVA(); in getRelocTargetVA() 758 return sym.getGotVA() + a - in.gotPlt->getVA(); in getRelocTargetVA() 865 return sym.getPltVA() + a - in.gotPlt->getVA(); in getRelocTargetVA() 917 return in.got->getTlsDescAddr(sym) + a - in.gotPlt->getVA(); in getRelocTargetVA() 925 return in.got->getGlobalDynAddr(sym) + a - in.gotPlt->getVA(); in getRelocTargetVA() 931 return in.got->getVA() + in.got->getTlsIndexOff() + a - in.gotPlt->getVA(); in getRelocTargetVA()
|
H A D | Relocations.cpp | 914 static void addPltEntry(PltSection &plt, GotPltSection &gotPlt, in addPltEntry() argument 917 gotPlt.addEntry(sym); in addPltEntry() 918 rel.addReloc({type, &gotPlt, sym.getGotPltOffset(), in addPltEntry() 1525 in.gotPlt->hasGotPltOffRel.store(true, std::memory_order_relaxed); in scanOne() 1784 addPltEntry(*in.plt, *in.gotPlt, *in.relaPlt, target->pltRel, sym); in postScanRelocations() 2392 addPltEntry(*in.plt, *in.gotPlt, *in.relaPlt, target->pltRel, in hexagonTLSSymbolUpdate()
|
H A D | SyntheticSections.cpp | 1436 addInSec(DT_MIPS_PLTGOT, *in.gotPlt); in computeContents() 1450 addInSec(DT_PLTGOT, *in.gotPlt); in computeContents() 1460 addInSec(DT_PLTGOT, *in.gotPlt); in computeContents() 1684 if (in.relaPlt.get() == this && in.gotPlt->getParent()) { in finalizeContents() 1686 getParent()->info = in.gotPlt->getParent()->sectionIndex; in finalizeContents() 4467 gotPlt.reset(); in reset() 4849 in.gotPlt = std::make_unique<GotPltSection>(); in createSyntheticSections() 4850 add(*in.gotPlt); in createSyntheticSections() 4871 in.gotPlt->hasGotPltOffRel = true; in createSyntheticSections()
|
H A D | Symbols.cpp | 176 return in.gotPlt->getVA() + getGotPltOffset(); in getGotPltVA()
|
H A D | Writer.cpp | 596 if (sec == in.gotPlt->getParent()) in isRelroSection() 817 InputSection *sec = in.gotPlt.get(); in setReservedSymbolSections() 1971 finalizeSynthetic(in.gotPlt.get()); in finalizeSections()
|
H A D | SyntheticSections.h | 1491 std::unique_ptr<GotPltSection> gotPlt; member
|