/external/llvm-project/lld/ELF/ |
D | InputSection.cpp | 192 uint64_t SectionBase::getVA(uint64_t offset) const { in getVA() function in SectionBase 433 p->r_offset = sec->getVA(rel.r_offset); in copyRelocations() 493 p->r_addend = sym.getVA(addend) - section->getOutputSection()->addr; in copyRelocations() 648 return s.getVA(0) + config->wordsize * 2 + in getTlsTpOffset() 656 return s.getVA(0) + (tls->p_vaddr & (tls->p_align - 1)) - 0x7000; in getTlsTpOffset() 658 return s.getVA(0) + (tls->p_vaddr & (tls->p_align - 1)); in getTlsTpOffset() 665 return s.getVA(0) - tls->p_memsz - in getTlsTpOffset() 681 return sym.getVA(a); in getRelocTargetVA() 685 return sym.getVA(a) - getARMStaticBase(sym); in getRelocTargetVA() 690 return in.got->getVA() + a - p; in getRelocTargetVA() [all …]
|
D | Thunks.cpp | 317 return destination.getVA() - (getThunkTargetSym()->getVA() + 4); in computeOffset() 429 uint64_t v = s.isInPlt() ? s.getPltVA() : s.getVA(a); in getAArch64ThunkDestVA() 464 uint64_t p = getThunkTargetSym()->getVA(); in writeTo() 479 uint64_t v = s.isInPlt() ? s.getPltVA() : s.getVA(); in getARMThunkDestVA() 493 uint64_t p = getThunkTargetSym()->getVA(); in getMayUseShortThunk() 506 uint64_t p = getThunkTargetSym()->getVA(); in writeTo() 531 uint64_t p = getThunkTargetSym()->getVA() & ~1; in getMayUseShortThunk() 544 uint64_t p = getThunkTargetSym()->getVA(); in writeTo() 603 uint64_t p = getThunkTargetSym()->getVA(); in writeLong() 624 uint64_t p = getThunkTargetSym()->getVA() & ~0x1; in writeLong() [all …]
|
D | MapFile.cpp | 77 return a->getVA() < b->getVA(); in getSectionSyms() 91 uint64_t vma = syms[i]->getVA(); in getSymbolStrings() 92 uint64_t lma = osec ? osec->getLMA() + vma - osec->getVA(0) : 0; in getSymbolStrings() 171 uint64_t lma = osec ? osec->getLMA() + cmd->addr - osec->getVA(0) : 0; in writeMapFile() 190 writeHeader(os, isec->getVA(0), osec->getLMA() + isec->getOffset(0), in writeMapFile() 209 writeHeader(os, cmd->addr, osec->getLMA() + cmd->addr - osec->getVA(0), in writeMapFile()
|
D | ARMErrataFix.cpp | 151 return patchee->getVA(patcheeOffset); in getBranchAddr() 188 uint64_t p = getVA(4); in writeTo() 197 uint64_t sourceAddr = isec->getVA(0) + off; in branchDestInFirstRegion() 204 uint64_t dst = (r->expr == R_PLT_PC) ? r->sym->getPltVA() : r->sym->getVA(); in branchDestInFirstRegion() 226 isBcc(instr) ? R_ARM_THM_JUMP19 : R_ARM_THM_JUMP24, isec->getVA(off), in patchInRange() 227 isec->getVA() + isec->getSize() + 0x100); in patchInRange() 246 uint64_t isecAddr = isec->getVA(0); in scanCortexA8Errata657417() 407 utohexstr(isec->getVA(sr.off)) + " in unpatched output."); in implementPatch() 434 : sr.rel->sym->getVA(); in implementPatch()
|
D | Symbols.cpp | 109 uint64_t va = isec->getVA(offset); in getSymVA() 152 uint64_t Symbol::getVA(int64_t addend) const { in getVA() function in Symbol 159 return in.igotPlt->getVA() + getGotPltOffset(); in getGotVA() 160 return in.got->getVA() + getGotOffset(); in getGotVA() 167 return in.igotPlt->getVA() + getGotPltOffset(); in getGotPltVA() 168 return in.gotPlt->getVA() + getGotPltOffset(); in getGotPltVA() 179 ? in.iplt->getVA() + pltIndex * target->ipltEntrySize in getPltVA() 180 : in.plt->getVA() + in.plt->headerSize + in getPltVA()
|
D | SyntheticSections.cpp | 558 uint64_t va = getPartition().ehFrameHdr->getVA(); in getFdeData() 681 return this->getVA() + b.globalDynIndex * config->wordsize; in getGlobalDynAddr() 722 g.local16.insert({{nullptr, getMipsPageAddr(sym.getVA(addend))}, 0}); in addEntry() 781 uint64_t symAddr = getMipsPageAddr(sym.getVA(addend)); in getPageEntryOffset() 784 index = g.local16.lookup({nullptr, getMipsPageAddr(sym.getVA(addend))}); in getPageEntryOffset() 1056 return ElfSym::mipsGp->getVA(0); in getGp() 1057 return getVA() + gots[*f->mipsGotIndex].startIndex * config->wordsize + in getGp() 1081 va = s->getVA(a); in writeTo() 1262 entries.push_back({tag, [=] { return sec->getVA(0); }}); in addInSec() 1269 {tag, [=] { return sec->getVA(0) - (getVA() + tagOffset); }}); in addInSecRelative() [all …]
|
D | AArch64ErrataFix.cpp | 339 uint64_t isecAddr = isec->getVA(0); in scanCortexA53Errata843419() 407 return patchee->getVA(patcheeOffset); in getLDSTAddr() 420 uint64_t p = patchSym->getVA() + 4; in writeTo() 600 uint64_t startAddr = isec->getVA(off); in patchInputSectionDescription()
|
/external/llvm-project/lld/ELF/Arch/ |
D | X86.cpp | 175 write32le(buf, mainPart->dynamic->getVA()); in writeGotPltHeader() 186 write32le(buf, s.getVA()); in writeIgotPlt() 214 uint32_t gotPlt = in.gotPlt->getVA(); in writePltHeader() 229 write32le(buf + 2, sym.getGotPltVA() - in.gotPlt->getVA()); in writePlt() 241 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16); in writePlt() 437 in.ibtPlt->getVA() + IBTPltHeaderSize + s.pltIndex * pltEntrySize; in writeGotPlt() 450 write32le(buf + 6, sym.getGotPltVA() - in.gotPlt->getVA()); in writePlt() 547 uint32_t ebx = in.gotPlt->getVA(); in writePlt() 548 unsigned off = pltEntryAddr - in.plt->getVA(); in writePlt() 587 uint32_t gotPlt = in.gotPlt->getVA(); in writePltHeader() [all …]
|
D | ARM.cpp | 172 write32le(buf, in.plt->getVA()); in writeGotPlt() 177 write32le(buf, s.getVA()); in writeIgotPlt() 193 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeaderLong() 194 uint64_t l1 = in.plt->getVA() + 8; in writePltHeaderLong() 212 uint64_t offset = in.gotPlt->getVA() - in.plt->getVA() - 4; in writePltHeader() 296 if (s.isFunc() && expr == R_PC && (s.getVA() & 1)) in needsThunk() 300 uint64_t dst = (expr == R_PLT_PC) ? s.getPltVA() : s.getVA(); in needsThunk() 307 if (expr == R_PLT_PC || (s.isFunc() && (s.getVA() & 1) == 0)) in needsThunk() 311 uint64_t dst = (expr == R_PLT_PC) ? s.getPltVA() : s.getVA(); in needsThunk()
|
D | X86_64.cpp | 373 write64le(buf, mainPart->dynamic->getVA()); in writeGotPltHeader() 388 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader() 389 uint64_t plt = in.ibtPlt ? in.ibtPlt->getVA() : in.plt->getVA(); in writePltHeader() 405 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16); in writePlt() 924 in.ibtPlt->getVA() + IBTPltHeaderSize + s.pltIndex * pltEntrySize; in writeGotPlt() 1013 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader() 1014 uint64_t plt = in.plt->getVA(); in writePltHeader() 1031 uint64_t off = pltEntryAddr - in.plt->getVA(); in writePlt() 1072 write32le(buf + 8, in.plt->getVA() - pltEntryAddr - 12); in writePlt()
|
D | RISCV.cpp | 138 write64le(buf, mainPart->dynamic->getVA()); in writeGotHeader() 140 write32le(buf, mainPart->dynamic->getVA()); in writeGotHeader() 145 write64le(buf, in.plt->getVA()); in writeGotPlt() 147 write32le(buf, in.plt->getVA()); in writeGotPlt() 159 uint32_t offset = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
|
D | AArch64.cpp | 195 write64le(buf, in.plt->getVA()); in writeGotPlt() 211 uint64_t got = in.gotPlt->getVA(); in writePltHeader() 212 uint64_t plt = in.plt->getVA(); in writePltHeader() 249 uint64_t dst = expr == R_PLT_PC ? s.getPltVA() : s.getVA(a); in needsThunk() 633 uint64_t got = in.gotPlt->getVA(); in writePltHeader() 634 uint64_t plt = in.plt->getVA(); in writePltHeader()
|
D | PPC.cpp | 75 uint32_t glink = in.plt->getVA(); // VA of .glink in writePPC32GlinkSection() 101 uint32_t got = in.got->getVA(); in writePPC32GlinkSection() 189 write32(buf, mainPart->dynamic->getVA()); in writeGotHeader() 194 write32(buf, in.plt->getVA() + in.plt->headerSize + 4 * s.pltIndex); in writeGotPlt() 205 return !PPC::inBranchRange(type, branchAddr, s.getVA(a)); in needsThunk()
|
D | Mips.cpp | 102 if (!s.isPreemptible && !(s.getVA() & 0x1)) in getRelExpr() 210 uint64_t va = in.plt->getVA(); in writeGotPlt() 262 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader() 263 uint64_t plt = in.plt->getVA(); in writePltHeader() 315 uint64_t gotPlt = in.gotPlt->getVA(); in writePltHeader()
|
D | Hexagon.cpp | 362 uint64_t off = in.gotPlt->getVA() - in.plt->getVA(); in writePltHeader()
|
D | PPC64.cpp | 156 uint64_t tocVA = in.got->getVA(); in getPPC64TocBase() 354 uint64_t tocRelative = d->getVA(addend) - getPPC64TocBase(); in tryRelaxPPC64TocIndirection() 1084 int64_t gotPltOffset = in.gotPlt->getVA() - (in.plt->getVA() + 8); in writePltHeader() 1373 s.getVA(a) + in needsThunk()
|
D | SPARCV9.cpp | 193 uint64_t off = pltEntryAddr - in.plt->getVA(); in writePlt()
|
/external/llvm-project/lld/MachO/ |
D | Symbols.cpp | 32 uint64_t Defined::getVA() const { in getVA() function in Defined 35 return isec->getVA() + value; in getVA() 49 uint64_t DSOHandle::getVA() const { return header->addr; } in getVA() function in DSOHandle
|
D | InputSection.cpp | 33 uint64_t InputSection::getVA() const { return parent->addr + outSecOff; } in getVA() function in InputSection 55 referentVA = referentIsec->getVA(); in writeTo() 60 referentVal -= getVA() + r.offset; in writeTo()
|
D | SyntheticSections.cpp | 97 uint64_t Location::getVA() const { in getVA() function in Location 99 return isec->getVA() + offset; in getVA() 168 return a.getVA() < b.getVA(); in finalizeContents() 207 write64le(&buf[i * WordSize], defined->getVA()); in writeTo() 305 return a.target.getVA() < b.target.getVA(); in finalizeContents() 339 return a.target.getVA() < b.target.getVA(); in finalizeContents() 479 write64le(buf + off, sym->getVA()); in writeTo() 669 symStab.value = defined->getVA(); in emitStabs() 753 nList->n_value = defined->getVA(); in writeTo()
|
D | Symbols.h | 52 virtual uint64_t getVA() const { return 0; } in getVA() function 99 uint64_t getVA() const override; 202 uint64_t getVA() const override;
|
D | InputSection.h | 44 uint64_t getVA() const;
|
D | ExportTrie.cpp | 64 : address(sym.getVA() - imageBase) { in ExportInfo()
|
/external/llvm-project/lld/MachO/Arch/ |
D | X86_64.cpp | 205 writeRipRelative(buf, in.stubHelper->addr, 7, in.imageLoaderCache->getVA()); in writeStubHelperHeader() 286 return sym.getVA(); in resolveSymbolVA() 295 return sym.getVA(); in resolveSymbolVA() 302 return sym.getVA(); in resolveSymbolVA() 312 return sym.getVA(); in resolveSymbolVA()
|
/external/llvm-project/lld/COFF/ |
D | MapFile.cpp | 156 address = absSym->getVA(); in getSymbolStrings()
|