parent
142947e9f0
commit
96b190428e
|
@ -455,10 +455,9 @@ template <class ELFT> void Writer<ELFT>::createSections() {
|
||||||
for (auto &P : Symtab.getSymbols()) {
|
for (auto &P : Symtab.getSymbols()) {
|
||||||
StringRef Name = P.first;
|
StringRef Name = P.first;
|
||||||
SymbolBody *Body = P.second->Body;
|
SymbolBody *Body = P.second->Body;
|
||||||
if (auto *U = dyn_cast<Undefined<ELFT>>(Body)) {
|
if (auto *U = dyn_cast<Undefined<ELFT>>(Body))
|
||||||
if (!U->isWeak() && !U->canKeepUndefined())
|
if (!U->isWeak() && !U->canKeepUndefined())
|
||||||
reportUndefined<ELFT>(Symtab, *Body);
|
reportUndefined<ELFT>(Symtab, *Body);
|
||||||
}
|
|
||||||
|
|
||||||
if (auto *C = dyn_cast<DefinedCommon<ELFT>>(Body))
|
if (auto *C = dyn_cast<DefinedCommon<ELFT>>(Body))
|
||||||
CommonSymbols.push_back(C);
|
CommonSymbols.push_back(C);
|
||||||
|
|
Loading…
Reference in New Issue