diff options
author | Fangrui Song <maskray@google.com> | 2021-05-14 15:51:16 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2021-05-14 15:51:17 -0700 |
commit | 823241a27c03235229ff0b9e12a141fc35007dec (patch) | |
tree | 19fdc0cdb655d63abf1b9d78cff4601f804567ae /gold/options.cc | |
parent | f8eec398fb705d6d6f76451288abd5d38f9d07fc (diff) | |
download | fsf-binutils-gdb-823241a27c03235229ff0b9e12a141fc35007dec.zip fsf-binutils-gdb-823241a27c03235229ff0b9e12a141fc35007dec.tar.gz fsf-binutils-gdb-823241a27c03235229ff0b9e12a141fc35007dec.tar.bz2 |
gold: Add -Bno-symbolic
gold/
PR 27834
* options.h (General_options): Make -Bsymbolic and
-Bsymbolic-functions special and adjust the help messages. Add
enum Bsymbolic_kind and -Bno-symbolic.
* options.cc (General_options): Define parse_Bno_symbolic,
parse_Bsymbolic_functions, and parse_Bsymbolic.
Diffstat (limited to 'gold/options.cc')
-rw-r--r-- | gold/options.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc index fdf0a17..1818e5d 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -341,6 +341,27 @@ General_options::parse_V(const char*, const char*, Command_line*) } void +General_options::parse_Bno_symbolic(const char*, const char*, + Command_line*) +{ + this->bsymbolic_ = BSYMBOLIC_NONE; +} + +void +General_options::parse_Bsymbolic_functions(const char*, const char*, + Command_line*) +{ + this->bsymbolic_ = BSYMBOLIC_FUNCTIONS; +} + +void +General_options::parse_Bsymbolic(const char*, const char*, + Command_line*) +{ + this->bsymbolic_ = BSYMBOLIC_ALL; +} + +void General_options::parse_defsym(const char*, const char* arg, Command_line* cmdline) { |