Enable -Bsymbolic and -Bsymbolic-functions to PIE
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 11 Feb 2016 18:28:33 +0000 (10:28 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 11 Feb 2016 23:20:13 +0000 (15:20 -0800)
commite20365c5d03f0f5eb341e04aafa88f30715e502e
tree036550fff88e456fb4bb1d1e6307600e5b7e4590
parent7cae9051edc2e3b11b5c79c08edfb91ee7f4e2e4
Enable -Bsymbolic and -Bsymbolic-functions to PIE

Before binutils 2.26, -Bsymbolic and -Bsymbolic-functions were also
applied to PIE so that "ld -pie -Bsymbolic -E" can be used to export
symbols in PIE with local binding.  This patch re-enables -Bsymbolic
and -Bsymbolic-functions for PIE.

PR ld/19615
* ld.texinfo: Document -Bsymbolic and -Bsymbolic-functions for
PIE.
* lexsup.c (parse_args): Enable -Bsymbolic and
-Bsymbolic-functions for PIE.
* testsuite/ld-i386/i386.exp: Run pr19175.
* testsuite/ld-i386/pr19615.d: New file.
* testsuite/ld-i386/pr19615.s: Likewise.
* testsuite/ld-x86-64/pr19615.d: Likewise.
* testsuite/ld-x86-64/pr19615.s: Likewise.
ld/ld.texinfo
ld/lexsup.c
ld/testsuite/ld-i386/i386.exp
ld/testsuite/ld-i386/pr19615.d [new file with mode: 0644]
ld/testsuite/ld-i386/pr19615.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19615.d [new file with mode: 0644]
ld/testsuite/ld-x86-64/pr19615.s [new file with mode: 0644]
ld/testsuite/ld-x86-64/x86-64.exp
This page took 0.029408 seconds and 4 git commands to generate.