Searched refs:getVA (Results 1 - 25 of 31) sorted by relevance

12

/freebsd-13-stable/contrib/llvm-project/lld/MachO/
H A DInputSection.cpp28 uint64_t InputSection::getVA() const { return parent->addr + outSecOff; } function in class:InputSection
41 va = isec->getVA();
45 val -= getVA() + r.offset;
H A DSymbols.h46 uint64_t getVA() const;
103 inline uint64_t Symbol::getVA() const { function in class:lld::macho::Symbol
105 return d->isec->getVA() + d->value;
H A DInputSection.h50 uint64_t getVA() const;
H A DSyntheticSections.cpp93 write64le(&buf[i * WordSize], defined->getVA());
387 nList->n_value = defined->value + defined->isec->getVA();
H A DExportTrie.cpp197 node->info = {pivotSymbol->getVA()};
/freebsd-13-stable/contrib/llvm-project/lld/ELF/
H A DInputSection.cpp191 uint64_t SectionBase::getVA(uint64_t offset) const { function in class:SectionBase
426 p->r_offset = sec->getVA(rel.r_offset);
486 p->r_addend = sym.getVA(addend) - section->getOutputSection()->addr;
641 return s.getVA(0) + config->wordsize * 2 +
649 return s.getVA(0) + (tls->p_vaddr & (tls->p_align - 1)) - 0x7000;
651 return s.getVA(0) + (tls->p_vaddr & (tls->p_align - 1));
658 return s.getVA(0) - tls->p_memsz -
674 return sym.getVA(a);
678 return sym.getVA(a) - getARMStaticBase(sym);
683 return in.got->getVA()
[all...]
H A DMapFile.cpp76 return a->getVA() < b->getVA();
90 uint64_t vma = syms[i]->getVA();
91 uint64_t lma = osec ? osec->getLMA() + vma - osec->getVA(0) : 0;
168 uint64_t lma = osec ? osec->getLMA() + cmd->addr - osec->getVA(0) : 0;
187 writeHeader(os, isec->getVA(0), osec->getLMA() + isec->getOffset(0),
206 writeHeader(os, cmd->addr, osec->getLMA() + cmd->addr - osec->getVA(0),
H A DARMErrataFix.cpp151 return patchee->getVA(patcheeOffset);
190 uint64_t p = getVA(4);
199 uint64_t sourceAddr = isec->getVA(0) + off;
206 uint64_t dst = (r->expr == R_PLT_PC) ? r->sym->getPltVA() : r->sym->getVA();
228 isBcc(instr) ? R_ARM_THM_JUMP19 : R_ARM_THM_JUMP24, isec->getVA(off),
229 isec->getVA() + isec->getSize() + 0x100);
248 uint64_t isecAddr = isec->getVA(0);
409 utohexstr(isec->getVA(sr.off)) + " in unpatched output.");
436 : sr.rel->sym->getVA();
H A DThunks.cpp355 uint64_t v = s.isInPlt() ? s.getPltVA() : s.getVA(a);
390 uint64_t p = getThunkTargetSym()->getVA();
405 uint64_t v = s.isInPlt() ? s.getPltVA() : s.getVA();
419 uint64_t p = getThunkTargetSym()->getVA();
432 uint64_t p = getThunkTargetSym()->getVA();
457 uint64_t p = getThunkTargetSym()->getVA() & ~1;
470 uint64_t p = getThunkTargetSym()->getVA();
529 uint64_t p = getThunkTargetSym()->getVA();
550 uint64_t p = getThunkTargetSym()->getVA() & ~0x1;
593 uint64_t p = getThunkTargetSym()->getVA()
[all...]
H A DSymbols.cpp110 uint64_t va = isec->getVA(offset);
153 uint64_t Symbol::getVA(int64_t addend) const { function in class:Symbol
160 return in.igotPlt->getVA() + getGotPltOffset();
161 return in.got->getVA() + getGotOffset();
168 return in.igotPlt->getVA() + getGotPltOffset();
169 return in.gotPlt->getVA() + getGotPltOffset();
180 ? in.iplt->getVA() + pltIndex * target->ipltEntrySize
181 : in.plt->getVA() + in.plt->headerSize +
H A DAArch64ErrataFix.cpp339 uint64_t isecAddr = isec->getVA(0);
407 return patchee->getVA(patcheeOffset);
422 uint64_t p = patchSym->getVA() + 4;
602 uint64_t startAddr = isec->getVA(off);
H A DSyntheticSections.cpp514 uint64_t va = getPartition().ehFrameHdr->getVA();
637 return this->getVA() + b.globalDynIndex * config->wordsize;
681 g.local16.insert({{nullptr, getMipsPageAddr(sym.getVA(addend))}, 0});
740 uint64_t symAddr = getMipsPageAddr(sym.getVA(addend));
743 index = g.local16.lookup({nullptr, getMipsPageAddr(sym.getVA(addend))});
1015 return ElfSym::mipsGp->getVA(0);
1016 return getVA() + gots[*f->mipsGotIndex].startIndex * config->wordsize +
1040 va = s->getVA(a);
1221 entries.push_back({tag, [=] { return sec->getVA(0); }});
1228 {tag, [=] { return sec->getVA(
[all...]
H A DInputSection.h88 uint64_t getVA(uint64_t offset = 0) const;
/freebsd-13-stable/contrib/llvm-project/lld/ELF/Arch/
H A DX86.cpp177 write32le(buf, mainPart->dynamic->getVA());
188 write32le(buf, s.getVA());
216 uint32_t gotPlt = in.gotPlt->getVA();
231 write32le(buf + 2, sym.getGotPltVA() - in.gotPlt->getVA());
243 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16);
439 in.ibtPlt->getVA() + IBTPltHeaderSize + s.pltIndex * pltEntrySize;
452 write32le(buf + 6, sym.getGotPltVA() - in.gotPlt->getVA());
549 uint32_t ebx = in.gotPlt->getVA();
550 unsigned off = pltEntryAddr - in.plt->getVA();
589 uint32_t gotPlt = in.gotPlt->getVA();
[all...]
H A DRISCV.cpp138 write64le(buf, mainPart->dynamic->getVA());
140 write32le(buf, mainPart->dynamic->getVA());
145 write64le(buf, in.plt->getVA());
147 write32le(buf, in.plt->getVA());
159 uint32_t offset = in.gotPlt->getVA() - in.plt->getVA();
H A DPPC.cpp76 uint32_t glink = in.plt->getVA(); // VA of .glink
102 uint32_t got = in.got->getVA();
190 write32(buf, mainPart->dynamic->getVA());
195 write32(buf, in.plt->getVA() + in.plt->headerSize + 4 * s.pltIndex);
206 return !PPC::inBranchRange(type, branchAddr, s.getVA(a));
H A DARM.cpp172 write32le(buf, in.plt->getVA());
177 write32le(buf, s.getVA());
193 uint64_t gotPlt = in.gotPlt->getVA();
194 uint64_t l1 = in.plt->getVA() + 8;
212 uint64_t offset = in.gotPlt->getVA() - in.plt->getVA() - 4;
296 if (s.isFunc() && expr == R_PC && (s.getVA() & 1))
300 uint64_t dst = (expr == R_PLT_PC) ? s.getPltVA() : s.getVA();
307 if (expr == R_PLT_PC || (s.isFunc() && (s.getVA() & 1) == 0))
311 uint64_t dst = (expr == R_PLT_PC) ? s.getPltVA() : s.getVA();
[all...]
H A DX86_64.cpp373 write64le(buf, mainPart->dynamic->getVA());
388 uint64_t gotPlt = in.gotPlt->getVA();
389 uint64_t plt = in.ibtPlt ? in.ibtPlt->getVA() : in.plt->getVA();
405 write32le(buf + 12, in.plt->getVA() - pltEntryAddr - 16);
918 in.ibtPlt->getVA() + IBTPltHeaderSize + s.pltIndex * pltEntrySize;
1007 uint64_t gotPlt = in.gotPlt->getVA();
1008 uint64_t plt = in.plt->getVA();
1025 uint64_t off = pltEntryAddr - in.plt->getVA();
1066 write32le(buf + 8, in.plt->getVA()
[all...]
H A DAArch64.cpp197 write64le(buf, in.plt->getVA());
213 uint64_t got = in.gotPlt->getVA();
214 uint64_t plt = in.plt->getVA();
251 uint64_t dst = expr == R_PLT_PC ? s.getPltVA() : s.getVA(a);
635 uint64_t got = in.gotPlt->getVA();
636 uint64_t plt = in.plt->getVA();
H A DHexagon.cpp362 uint64_t off = in.gotPlt->getVA() - in.plt->getVA();
H A DMips.cpp102 if (!s.isPreemptible && !(s.getVA() & 0x1))
210 uint64_t va = in.plt->getVA();
262 uint64_t gotPlt = in.gotPlt->getVA();
263 uint64_t plt = in.plt->getVA();
315 uint64_t gotPlt = in.gotPlt->getVA();
H A DPPC64.cpp70 uint64_t tocVA = in.got->getVA();
263 uint64_t tocRelative = d->getVA(addend) - getPPC64TocBase();
778 int64_t gotPltOffset = in.gotPlt->getVA() - (in.plt->getVA() + 8);
1071 s.getVA(a) +
H A DSPARCV9.cpp193 uint64_t off = pltEntryAddr - in.plt->getVA();
/freebsd-13-stable/contrib/llvm-project/lld/MachO/Arch/
H A DX86_64.cpp198 writeRipRelative(buf, in.stubHelper->addr, 7, in.imageLoaderCache->getVA());
259 return sym.getVA();
265 return sym.getVA();
/freebsd-13-stable/contrib/llvm-project/lld/COFF/
H A DMapFile.cpp156 address = absSym->getVA();

Completed in 228 milliseconds

12