diff options
Diffstat (limited to 'lld/ELF/Driver.cpp')
| -rw-r--r-- | lld/ELF/Driver.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index 7e6af5ede72..1b1f0beb40b 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -458,14 +458,15 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &Args) { if (Config->OutputFile.empty()) Config->OutputFile = "a.out"; + Symtab.scanShlibUndefined(); + Symtab.scanDynamicList(); + Symtab.addCombinedLtoObject(); for (auto *Arg : Args.filtered(OPT_wrap)) Symtab.wrap(Arg->getValue()); // Write the result to the file. - Symtab.scanShlibUndefined(); - Symtab.scanDynamicList(); if (Config->GcSections) markLive<ELFT>(&Symtab); if (Config->ICF) |

