diff options
author | Alan Modra <amodra@gmail.com> | 2019-09-23 23:01:37 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2019-10-02 23:01:53 +0930 |
commit | 1914e26482b6d60a0a9fd7fb981ca1ce5e75919b (patch) | |
tree | dfbbe903bab03e19c622007e6cc98329b2dd6c2b /ld/ld.texi | |
parent | df07e2c772dab40d268dc44c78bb087c4b75b3c6 (diff) | |
download | gdb-1914e26482b6d60a0a9fd7fb981ca1ce5e75919b.zip gdb-1914e26482b6d60a0a9fd7fb981ca1ce5e75919b.tar.gz gdb-1914e26482b6d60a0a9fd7fb981ca1ce5e75919b.tar.bz2 |
-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.
Diffstat (limited to 'ld/ld.texi')
-rw-r--r-- | ld/ld.texi | 12 |
1 files changed, 3 insertions, 9 deletions
@@ -1436,21 +1436,15 @@ libraries. When creating a shared library, bind references to global symbols to the definition within the shared library, if any. Normally, it is possible for a program linked against a shared library to override the definition -within the shared library. This option can also be used with the -@option{--export-dynamic} option, when creating a position independent -executable, to bind references to global symbols to the definition within -the executable. This option is only meaningful on ELF platforms which -support shared libraries and position independent executables. +within the shared library. This option is only meaningful on ELF +platforms which support shared libraries. @kindex -Bsymbolic-functions @item -Bsymbolic-functions When creating a shared library, bind references to global function symbols to the definition within the shared library, if any. -This option can also be used with the @option{--export-dynamic} option, -when creating a position independent executable, to bind references -to global function symbols to the definition within the executable. This option is only meaningful on ELF platforms which support shared -libraries and position independent executables. +libraries. @kindex --dynamic-list=@var{dynamic-list-file} @item --dynamic-list=@var{dynamic-list-file} |