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.h | |
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.h')
-rw-r--r-- | ld/ld.h | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -119,20 +119,6 @@ struct wildcard_list enum endian_enum { ENDIAN_UNSET = 0, ENDIAN_BIG, ENDIAN_LITTLE }; -enum symbolic_enum -{ - symbolic_unset = 0, - symbolic, - symbolic_functions, -}; - -enum dynamic_list_enum -{ - dynamic_list_unset = 0, - dynamic_list_data, - dynamic_list -}; - typedef struct { /* 1 => assign space to common symbols even if `relocatable_output'. */ @@ -183,13 +169,6 @@ typedef struct /* Big or little endian as set on command line. */ enum endian_enum endian; - /* -Bsymbolic and -Bsymbolic-functions, as set on command line. */ - enum symbolic_enum symbolic; - - /* --dynamic-list, --dynamic-list-cpp-new, --dynamic-list-cpp-typeinfo - and --dynamic-list FILE, as set on command line. */ - enum dynamic_list_enum dynamic_list; - /* Name of runtime interpreter to invoke. */ char *interpreter; |