return false;
}
// If it's already resolved as some Defined type, do nothing.
- // Otherwise, rename it to see if To can be resolved successfully.
+ // Otherwise, rename it to see if To can be resolved instead.
if (Symtab.find(From))
continue;
if (auto EC = Symtab.rename(From, To)) {
// in the Symbol may be mutated by the resolver. If you have a
// pointer P to a SymbolBody and are not sure whether the resolver
// has chosen the object among other objects having the same name,
- // you can access P->getSymbol()->Body to get the resolver's result.
+ // you can access P->Backref->Body to get the resolver's result.
void setBackref(Symbol *P) { Backref = P; }
SymbolBody *getReplacement() { return Backref ? Backref->Body : this; }
}
// Section table
- // Name field in the string table is 8 byte long. Longer names need
+ // Name field in the section table is 8 byte long. Longer names need
// to be written to the string table. First, construct string table.
std::vector<char> Strtab;
for (std::unique_ptr<OutputSection> &Sec : OutputSections) {