From 7a554b2725e6c336ff98dc671848a29d55f4c16f Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Thu, 2 Sep 2021 19:07:53 -0700 Subject: 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. --- gold/archive.cc | 7 ------- 1 file changed, 7 deletions(-) (limited to 'gold/archive.cc') diff --git a/gold/archive.cc b/gold/archive.cc index 0de9717..ff426b2 100644 --- a/gold/archive.cc +++ b/gold/archive.cc @@ -120,13 +120,6 @@ Library_base::should_include_member(Symbol_table* symtab, Layout* layout, return Library_base::SHOULD_INCLUDE_YES; } - if (parameters->options().is_export_dynamic_symbol(sym_name)) - { - *why = "--export-dynamic-symbol "; - *why += sym_name; - return Library_base::SHOULD_INCLUDE_YES; - } - if (layout->script_options()->is_referenced(sym_name)) { size_t alc = 100 + strlen(sym_name); -- cgit v1.1