diff options
Diffstat (limited to 'lld/ELF/Driver.cpp')
-rw-r--r-- | lld/ELF/Driver.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp index c6646c9e4b1..dbf76a76a77 100644 --- a/lld/ELF/Driver.cpp +++ b/lld/ELF/Driver.cpp @@ -1063,6 +1063,10 @@ template <class ELFT> void LinkerDriver::link(opt::InputArgList &Args) { if (!Config->Relocatable) addReservedSymbols(); + // We want to declare linker script's symbols early, + // so that we can version them. + Script->declareSymbols(); + // Apply version scripts. Symtab->scanVersionScript(); |