diff options
Diffstat (limited to 'ELF/MarkLive.cpp')
-rw-r--r-- | ELF/MarkLive.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ELF/MarkLive.cpp b/ELF/MarkLive.cpp index b77c84ff75a0..0b4a78f8da6b 100644 --- a/ELF/MarkLive.cpp +++ b/ELF/MarkLive.cpp @@ -230,6 +230,8 @@ template <class ELFT> void elf::markLive() { MarkSymbol(Symtab<ELFT>::X->find(Config->Fini)); for (StringRef S : Config->Undefined) MarkSymbol(Symtab<ELFT>::X->find(S)); + for (StringRef S : Script->Opt.ReferencedSymbols) + MarkSymbol(Symtab<ELFT>::X->find(S)); // Preserve externally-visible symbols if the symbols defined by this // file can interrupt other ELF file's symbols at runtime. |