]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
-Bsymbolic is not for PIEs
authorAlan Modra <amodra@gmail.com>
Mon, 23 Sep 2019 13:31:37 +0000 (23:01 +0930)
committerAlan Modra <amodra@gmail.com>
Wed, 2 Oct 2019 13:31:53 +0000 (23:01 +0930)
commit1914e26482b6d60a0a9fd7fb981ca1ce5e75919b
treedfbbe903bab03e19c622007e6cc98329b2dd6c2b
parentdf07e2c772dab40d268dc44c78bb087c4b75b3c6
-Bsymbolic is not for PIEs

Despite PR19615, it doesn't make sense to use -Bsymbolic with PIEs.
Dynamic symbols in an executable won't be overridden anyway.

* ld.texi (-Bsymbolic, -Bsymbolic-functions): Don't mention PIEs.
* ld.h (symbolic_enum, dynamic_list_enum),
(args_type <symbolic, dynamic_list>): Move to..
* lexsup.c (parse_args): ..here, using auto vars opt_symbolic
and opt_dynamic_list rather than command_line fields.  Only
act on -Bsymbolic and -Bsymbolic-functions for shared library
output.  Free dynamic_list.
ld/ChangeLog
ld/ld.h
ld/ld.texi
ld/lexsup.c