Lines Matching refs:sym
111 Symbol *sym = symtab->find(name);
112 if (!sym || sym->isDefined())
114 sym->resolve(Defined{/*file=*/nullptr, saver.save(name), STB_GLOBAL,
117 defined.push_back(cast<Defined>(sym));
151 for (Defined *sym : defined) {
152 sym->section = sec;
153 sym->value -= 4 * first;
207 Symbol &sym = tocSec->getFile<ELFT>()->getRelocTargetSym(relas[index]);
208 return {dyn_cast<Defined>(&sym), getAddend<ELFT>(relas[index])};
243 Defined *defSym = dyn_cast<Defined>(rel.sym);
282 void writePlt(uint8_t *buf, const Symbol &sym,
284 void writeIplt(uint8_t *buf, const Symbol &sym,
782 void PPC64::writePlt(uint8_t *buf, const Symbol &sym,
784 int32_t offset = pltHeaderSize + sym.pltIndex * pltEntrySize;
789 void PPC64::writeIplt(uint8_t *buf, const Symbol &sym,
791 writePPC64LoadAndBranch(buf, sym.getGotPltVA() - getPPC64TocBase());
1122 // This is relaxed from addis rT, r2, sym@got@tlsgd@ha to
1123 // addis rT, r2, sym@got@tprel@ha.
1128 // Relax from addi r3, rA, sym@got@tlsgd@l to
1129 // ld r3, sym@got@tprel@l(rA)
1136 write32(loc, 0x60000000); // bl __tls_get_addr(sym@tlsgd) --> nop