reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/lld/ELF/Relocations.cpp
 1037   if (isStaticLinkTimeConstant(expr, type, sym, sec, offset) ||
 1038       (!config->shared && sym.isUndefWeak())) {
 1039     sec.relocations.push_back({expr, type, offset, addend, &sym});
 1046     if (expr == R_GOT || (rel == target->symbolicRel && !sym.isPreemptible)) {
 1047       addRelativeReloc(&sec, offset, &sym, addend, expr, type);
 1052       sec.getPartition().relaDyn->addReloc(rel, &sec, offset, &sym, addend,
 1071         in.mipsGot->addEntry(*sec.file, sym, addend, expr);
 1079     if (!canDefineSymbolInExecutable(sym)) {
 1080       errorOrWarn("cannot preempt symbol: " + toString(sym) +
 1081                   getLocation(sec, sym, offset));
 1085     if (sym.isObject()) {
 1087       if (auto *ss = dyn_cast<SharedSymbol>(&sym)) {
 1092                 getLocation(sec, sym, offset));
 1095       sec.relocations.push_back({expr, type, offset, addend, &sym});
 1126     if (sym.isFunc()) {
 1128         errorOrWarn("symbol '" + toString(sym) +
 1130                     getLocation(sec, sym, offset));
 1131       if (!sym.isInPlt())
 1132         addPltEntry<ELFT>(in.plt, in.gotPlt, in.relaPlt, target->pltRel, sym);
 1133       if (!sym.isDefined())
 1135             sym, in.plt,
 1136             target->pltHeaderSize + target->pltEntrySize * sym.pltIndex, 0);
 1137       sym.needsPltAddr = true;
 1138       sec.relocations.push_back({expr, type, offset, addend, &sym});
 1147           (sym.getName().empty() ? "local symbol"
 1148                                  : "symbol: " + toString(sym)) +
 1151           getLocation(sec, sym, offset));
 1155           (sym.getName().empty() ? "local symbol" : "symbol " + toString(sym)) +
 1155           (sym.getName().empty() ? "local symbol" : "symbol " + toString(sym)) +
 1156           "; recompile with -fPIC" + getLocation(sec, sym, offset));
 1160   errorOrWarn("symbol '" + toString(sym) + "' has no type" +
 1161               getLocation(sec, sym, offset));