[ELF] - Do not keep undefined locals in .symtab
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 30 Mar 2016 08:16:11 +0000 (08:16 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 30 Mar 2016 08:16:11 +0000 (08:16 +0000)
commitf1c0bf5b4087c6cb7aa4939b4be738fa5f9f80b4
tree0add497750bdea15c66f995e3e738bdd0af2ee00
parent17d7d145717cc9eedee5f9650f5188a0bf32a65f
[ELF] - Do not keep undefined locals in .symtab

gold and bfd do not include the undefined locals in symtab.
We have no reasons to support that either.

That fixes PR27016

Differential revision: http://reviews.llvm.org/D18554

llvm-svn: 264843
lld/ELF/Writer.cpp
lld/test/ELF/local-undefined-symbol.s [new file with mode: 0644]