[ELF] Implemented -Bsymbolic-functions command line option
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 2 Feb 2016 09:28:53 +0000 (09:28 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 2 Feb 2016 09:28:53 +0000 (09:28 +0000)
commit5c36e5938dbb2d4c135819189fd68fdb5982850c
tree8654b9b81ffc4ff91f2dc73f1331349777ac7812
parentffe19f524548fd8b4e16db4c6bd3528850890e00
[ELF] Implemented -Bsymbolic-functions command line option

-Bsymbolic-functions:
When creating a shared library, bind references to global
function symbols to the definition within the shared library, if any.

This patch also fixed behavior of already existent -Bsymbolic:
previously PLT entries were created even if -Bsymbolic was specified.

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

llvm-svn: 259481
lld/ELF/Config.h
lld/ELF/Driver.cpp
lld/ELF/Options.td
lld/ELF/OutputSections.cpp
lld/ELF/Symbols.cpp
lld/ELF/Symbols.h
lld/test/ELF/bsymbolic.s [new file with mode: 0644]