Handle shared symbols in --gc-sections.
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 13 Oct 2017 18:32:16 +0000 (18:32 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 13 Oct 2017 18:32:16 +0000 (18:32 +0000)
commita7e3132d0324ca13a592668410f91c202525aa42
tree5ba89bfe97627779b03ea1d28ad705d1c313bf76
parentbdaa2f9d0591e75062ce84409d75c0f95e12a108
Handle shared symbols in --gc-sections.

We don't want to gc a section if it is used via __start_*, but we were
doing that if the same symbol was visible in a shared library.

llvm-svn: 315727
lld/ELF/MarkLive.cpp
lld/test/ELF/startstop-gccollect.s