Revert r319008, "[ELF] Do not keep symbols if they referenced only from discarded...
authorIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 28 Nov 2017 08:39:40 +0000 (08:39 +0000)
committerIgor Kudrin <ikudrin@accesssoftek.com>
Tue, 28 Nov 2017 08:39:40 +0000 (08:39 +0000)
commita46522f369ca9a84127293ed07ca955c1b155782
tree907064472534d07a67f46d259b143936636e1cda
parent6e78ad35cc155ad838ed9eda1d319b4eab5c454f
Revert r319008, "[ELF] Do not keep symbols if they referenced only from discarded sections."
and r319051, "Add a missing test."

r319008 broke the LTO bots;
r319051 depends on changes in r319008.

llvm-svn: 319154
lld/ELF/MarkLive.cpp
lld/ELF/SymbolTable.cpp
lld/ELF/Symbols.h
lld/ELF/Writer.cpp
lld/test/ELF/Inputs/gc-sections-shared2.s [deleted file]
lld/test/ELF/gc-collect-undefined.s [deleted file]
lld/test/ELF/gc-sections-shared.s