Don't discard .L symbol with -r.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 4 Dec 2016 08:34:17 +0000 (08:34 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 4 Dec 2016 08:34:17 +0000 (08:34 +0000)
commit61d052d7251b4b3e78d2524f7c7f6fc949ec87e2
treecebc63987ac8a8efb8a7f6b99e1596283063e8a5
parente3161c568d2f0f3aeb8c8c41eb58eb179ef589e8
Don't discard .L symbol with -r.

They might be used by relocations.

Fixes pr31252.

llvm-svn: 288617
lld/ELF/Driver.cpp
lld/test/ELF/relocatable-local-sym.s [new file with mode: 0644]