aboutsummaryrefslogtreecommitdiff
path: root/gold/symtab.cc
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2021-09-02 19:07:53 -0700
committerFangrui Song <maskray@google.com>2021-09-02 19:07:53 -0700
commit7a554b2725e6c336ff98dc671848a29d55f4c16f (patch)
tree51b91832de1c9d5000578b3a9d635170f964be02 /gold/symtab.cc
parent68e503ecf0d01ca22e5d7c3f225347e6d25c53b8 (diff)
downloadgdb-7a554b2725e6c336ff98dc671848a29d55f4c16f.zip
gdb-7a554b2725e6c336ff98dc671848a29d55f4c16f.tar.gz
gdb-7a554b2725e6c336ff98dc671848a29d55f4c16f.tar.bz2
gold: --export-dynamic-symbol: don't imply -u
to match GNU ld. gold/ * archive.cc (Library_base::should_include_member): Don't handle --export-dynamic-symbol. * symtab.cc (Symbol_table::do_add_undefined_symbols_from_command_line): Likewise.
Diffstat (limited to 'gold/symtab.cc')
-rw-r--r--gold/symtab.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/gold/symtab.cc b/gold/symtab.cc
index 3fa0804..5a21ddc 100644
--- a/gold/symtab.cc
+++ b/gold/symtab.cc
@@ -2475,12 +2475,6 @@ Symbol_table::do_add_undefined_symbols_from_command_line(Layout* layout)
++p)
this->add_undefined_symbol_from_command_line<size>(p->c_str());
- for (options::String_set::const_iterator p =
- parameters->options().export_dynamic_symbol_begin();
- p != parameters->options().export_dynamic_symbol_end();
- ++p)
- this->add_undefined_symbol_from_command_line<size>(p->c_str());
-
for (Script_options::referenced_const_iterator p =
layout->script_options()->referenced_begin();
p != layout->script_options()->referenced_end();