/freebsd-current/contrib/llvm-project/lld/MachO/ |
H A D | Symbols.cpp | 48 uint64_t Symbol::getStubVA() const { return in.stubs->getVA(stubsIndex); } 50 return in.lazyPointers->getVA(stubsIndex); 52 uint64_t Symbol::getGotVA() const { return in.got->getVA(gotIndex); } 53 uint64_t Symbol::getTlvVA() const { return in.tlvPointers->getVA(gotIndex); } 88 uint64_t Defined::getVA() const { function in class:Defined 105 return isec->getVA(value); 125 uint64_t DylibSymbol::getVA() const { function in class:DylibSymbol 126 return isInStubs() ? getStubVA() : Symbol::getVA();
|
H A D | Symbols.h | 59 virtual uint64_t getVA() const { return 0; } function in class:lld::macho::Symbol 82 return isInStubs() ? getStubVA() : getVA(); 84 uint64_t resolveGotVA() const { return isInGot() ? getGotVA() : getVA(); } 85 uint64_t resolveTlvVA() const { return isInGot() ? getTlvVA() : getVA(); } 134 uint64_t getVA() const override; 261 uint64_t getVA() const override;
|
H A D | InputSection.cpp | 45 uint64_t InputSection::getVA(uint64_t off) const { function in class:InputSection 57 return sym->getVA(); 188 minuendVA = toSym->getVA() + minuend.addend; 192 minuendVA = referentIsec->getVA(minuend.addend); 194 referentVA = minuendVA - fromSym->getVA(); 219 referentVA = referentIsec->getVA(r.addend); 226 target->relocateOne(loc, r, referentVA, getVA() + r.offset);
|
H A D | ConcatOutputSection.cpp | 171 uint64_t isecVA = inputs[callIdx]->getVA(); 240 uint64_t isecVA = isec->getVA(); 309 uint64_t thunkVA = thunkInfo.isec->getVA();
|
H A D | InputSection.h | 51 uint64_t getVA(uint64_t off) const; 112 uint64_t getVA() const { return InputSection::getVA(0); } function in class:lld::macho::final
|
H A D | SyntheticSections.h | 125 uint64_t getVA(uint32_t gotIndex) const { function in class:lld::macho::NonLazyPointerSectionBase 149 uint64_t getVA() const { return isec->getVA(offset); } function in struct:lld::macho::Location 290 uint64_t getVA(uint32_t stubsIndex) const { function in class:lld::macho::final 350 uint64_t getVA(uint32_t index) const { function in class:lld::macho::final
|
H A D | SyntheticSections.cpp | 283 return a.isec->getVA(a.offset) < b.isec->getVA(b.offset); 380 writeChainedRebase(buf, sym->getVA() + addend); 390 write64le(&buf[i * target->wordSize], defined->getVA()); 602 return a.target.getVA() < b.target.getVA(); 606 return a.second[0].target.getVA() < b.second[0].target.getVA(); 898 stubOffset, in.objcSelrefs->getVA(), i, 928 write64le(buf + off, sym->getVA()); [all...] |
/freebsd-current/contrib/llvm-project/lld/ELF/ |
H A D | InputSection.cpp | 187 uint64_t SectionBase::getVA(uint64_t offset) const { function in class:SectionBase 410 p->r_offset = sec->getVA(rel.offset); 466 p->r_addend = sym.getVA(addend) - section->getOutputSection()->addr; 643 return s.getVA(0) + config->wordsize * 2 + 651 return s.getVA(0) + (tls->p_vaddr & (tls->p_align - 1)) - 0x7000; 654 return s.getVA(0) + (tls->p_vaddr & (tls->p_align - 1)); 662 return s.getVA(0) - tls->p_memsz - 679 return sym.getVA(a); 685 return sym.getVA(a) - getARMStaticBase(sym); 698 return in.got->getVA() [all...] |
H A D | ARMErrataFix.cpp | 149 return patchee->getVA(patcheeOffset); 199 uint64_t p = getVA(pcBias); 208 uint64_t sourceAddr = isec->getVA(0) + off; 215 uint64_t dst = (r->expr == R_PLT_PC) ? r->sym->getPltVA() : r->sym->getVA(); 237 isBcc(instr) ? R_ARM_THM_JUMP19 : R_ARM_THM_JUMP24, isec->getVA(off), 238 isec->getVA() + isec->getSize() + 0x100); 257 uint64_t isecAddr = isec->getVA(0); 417 utohexstr(isec->getVA(sr.off)) + " in unpatched output."); 444 : sr.rel->sym->getVA();
|
H A D | MapFile.cpp | 71 ret[dr->section].emplace_back(dr, dr->getVA()); 98 uint64_t vma = syms[i]->getVA(); 99 uint64_t lma = osec ? osec->getLMA() + vma - osec->getVA(0) : 0; 165 uint64_t lma = osec ? osec->getLMA() + assign->addr - osec->getVA(0) : 0; 184 writeHeader(os, isec->getVA(), osec->getLMA() + isec->outSecOff, 204 osec->getLMA() + assign->addr - osec->getVA(0),
|
H A D | Thunks.cpp | 426 return destination.getVA() - (getThunkTargetSym()->getVA() + 4); 510 uint64_t v = s.isInPlt() ? s.getPltVA() : s.getVA(a); 518 uint64_t p = getThunkTargetSym()->getVA(); 529 uint64_t p = getThunkTargetSym()->getVA(); 567 uint64_t p = getThunkTargetSym()->getVA(); 582 uint64_t v = s.isInPlt() ? s.getPltVA() : s.getVA(); 596 uint64_t p = getThunkTargetSym()->getVA(); 609 uint64_t p = getThunkTargetSym()->getVA(); 639 uint64_t p = getThunkTargetSym()->getVA() [all...] |
H A D | Symbols.cpp | 116 uint64_t va = isec->getVA(offset); 159 uint64_t Symbol::getVA(int64_t addend) const { function in class:Symbol 165 return in.igotPlt->getVA() + getGotPltOffset(); 166 return in.got->getVA() + getGotOffset(); 175 return in.igotPlt->getVA() + getGotPltOffset(); 176 return in.gotPlt->getVA() + getGotPltOffset(); 187 ? in.iplt->getVA() + getPltIdx() * target->ipltEntrySize 188 : in.plt->getVA() + in.plt->headerSize +
|
H A D | SyntheticSections.cpp | 534 uint64_t va = getPartition().ehFrameHdr->getVA(); 665 return getVA() + getTlsDescOffset(sym); 669 return this->getVA() + b.getTlsGdIdx() * config->wordsize; 717 g.local16.insert({{nullptr, getMipsPageAddr(sym.getVA(addend))}, 0}); 776 uint64_t symAddr = getMipsPageAddr(sym.getVA(addend)); 779 index = g.local16.lookup({nullptr, getMipsPageAddr(sym.getVA(addend))}); 1066 return ElfSym::mipsGp->getVA(0); 1067 return getVA() + gots[f->mipsGotIndex].startIndex * config->wordsize + 0x7ff0; 1090 va = s->getVA(a); 1307 entries.emplace_back(tag, sec.getVA()); [all...] |
H A D | AArch64ErrataFix.cpp | 339 uint64_t isecAddr = isec->getVA(0); 407 return patchee->getVA(patcheeOffset); 420 uint64_t p = patchSym->getVA() + 4; 598 uint64_t startAddr = isec->getVA(off);
|
/freebsd-current/contrib/llvm-project/lld/ELF/Arch/ |
H A D | X86.cpp | 167 write32le(buf, mainPart->dynamic->getVA()); 178 write32le(buf, s.getVA()); 206 uint32_t gotPlt = in.gotPlt->getVA(); 221 write32le(buf + 2, sym.getGotPltVA() - in.gotPlt->getVA()); 233 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16); 535 in.ibtPlt->getVA() + IBTPltHeaderSize + s.getPltIdx() * pltEntrySize; 548 write32le(buf + 6, sym.getGotPltVA() - in.gotPlt->getVA()); 645 uint32_t ebx = in.gotPlt->getVA(); 646 unsigned off = pltEntryAddr - in.plt->getVA(); 685 uint32_t gotPlt = in.gotPlt->getVA(); [all...] |
H A D | ARM.cpp | 207 write32(buf, in.plt->getVA()); 212 write32(buf, s.getVA()); 226 uint64_t gotPlt = in.gotPlt->getVA(); 227 uint64_t l1 = in.plt->getVA() + 8; 245 uint64_t offset = in.gotPlt->getVA() - in.plt->getVA() - 4; 328 if (s.isFunc() && expr == R_PC && (s.getVA() & 1)) 332 uint64_t dst = (expr == R_PLT_PC) ? s.getPltVA() : s.getVA(); 334 (!config->armHasBlx && (s.getVA() & 1)); 340 if (expr == R_PLT_PC || (s.isFunc() && (s.getVA() [all...] |
H A D | RISCV.cpp | 203 write64le(buf, mainPart->dynamic->getVA()); 205 write32le(buf, mainPart->dynamic->getVA()); 210 write64le(buf, in.plt->getVA()); 212 write32le(buf, in.plt->getVA()); 218 write64le(buf, s.getVA()); 220 write32le(buf, s.getVA()); 233 uint32_t offset = in.gotPlt->getVA() - in.plt->getVA(); 470 int64_t displace = SignExtend64(val - gp->getVA(), bits); 662 auto val = rel.sym->getVA(re [all...] |
H A D | SystemZ.cpp | 182 write64be(buf, mainPart->dynamic->getVA()); 191 write64be(buf, s.getVA()); 206 uint64_t got = in.got->getVA(); 207 uint64_t plt = in.plt->getVA(); 231 write32be(buf + 24, (in.plt->getVA() - pltEntryAddr - 22) >> 1);
|
H A D | X86_64.cpp | 411 write64le(buf, mainPart->dynamic->getVA()); 422 write64le(buf, s.getVA()); 432 uint64_t gotPlt = in.gotPlt->getVA(); 433 uint64_t plt = in.ibtPlt ? in.ibtPlt->getVA() : in.plt->getVA(); 449 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16); 1073 in.ibtPlt->getVA() + IBTPltHeaderSize + s.getPltIdx() * pltEntrySize; 1162 uint64_t gotPlt = in.gotPlt->getVA(); 1163 uint64_t plt = in.plt->getVA(); 1180 uint64_t off = pltEntryAddr - in.plt->getVA(); [all...] |
H A D | AArch64.cpp | 236 write64(buf, in.plt->getVA()); 241 write64(buf, s.getVA()); 257 uint64_t got = in.gotPlt->getVA(); 258 uint64_t plt = in.plt->getVA(); 297 uint64_t dst = expr == R_PLT_PC ? s.getPltVA() : s.getVA(a); 677 int64_t val = sym.getVA() - (secAddr + addRel.offset); 743 getAArch64Page(sym.getVA()) - getAArch64Page(secAddr + adrpRel.offset); 758 SignExtend64(getAArch64Page(sym.getVA()) - 761 target->relocate(buf + addRel.offset, addRel, SignExtend64(sym.getVA(), 64)); 904 uint64_t got = in.gotPlt->getVA(); [all...] |
H A D | LoongArch.cpp | 302 write64le(buf, in.plt->getVA()); 304 write32le(buf, in.plt->getVA()); 310 write64le(buf, s.getVA()); 312 write32le(buf, s.getVA()); 335 uint32_t offset = in.gotPlt->getVA() - in.plt->getVA(); 688 const uint64_t secAddr = sec.getVA();
|
H A D | PPC.cpp | 78 uint32_t glink = in.plt->getVA(); // VA of .glink 104 uint32_t got = in.got->getVA(); 190 write32(buf, mainPart->dynamic->getVA()); 195 write32(buf, in.plt->getVA() + in.plt->headerSize + 4 * s.getPltIdx()); 206 return !PPC::inBranchRange(type, branchAddr, s.getVA(a));
|
H A D | Mips.cpp | 99 if (!s.isPreemptible && !(s.getVA() & 0x1)) 208 uint64_t va = in.plt->getVA(); 260 uint64_t gotPlt = in.gotPlt->getVA(); 261 uint64_t plt = in.plt->getVA(); 313 uint64_t gotPlt = in.gotPlt->getVA();
|
H A D | Hexagon.cpp | 364 uint64_t off = in.gotPlt->getVA() - in.plt->getVA();
|
/freebsd-current/contrib/llvm-project/lld/MachO/Arch/ |
H A D | ARM64.cpp | 145 objcMsgSendAddr = d->getVA(); 376 uint64_t addr1 = isec->getVA() + offset1; 404 uint64_t page1 = pageBits(offset1 + isec->getVA()) + adrp1.addend; 405 uint64_t page2 = pageBits(offset2 + isec->getVA()) + adrp2.addend; 432 uint64_t addr1 = isec->getVA() + offset1; 433 uint64_t addr2 = isec->getVA() + offset2; 488 uint64_t addr1 = isec->getVA() + offset1; 489 uint64_t addr3 = isec->getVA() + offset3; 563 uint64_t addr1 = isec->getVA() + offset1; 564 uint64_t addr2 = isec->getVA() [all...] |