From e2153196343ab5120efa49044081baaeeae8a293 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 11 Jul 2011 16:19:51 +0000 Subject: PR gold/12979 * options.h (class General_options): Add -Bgroup. * options.cc (General_options::finalize): If -Bgroup is set, default to --unresolved-symbols=report-all. * layout.cc (Layout::finish_dynamic_section): Implement -Bgroup. * target-reloc.h (issue_undefined_symbol_error): Handle --unresolved-symbols=report-all. --- gold/options.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gold/options.cc') diff --git a/gold/options.cc b/gold/options.cc index 16699aa..be32645 100644 --- a/gold/options.cc +++ b/gold/options.cc @@ -1168,6 +1168,14 @@ General_options::finalize() } } + // -Bgroup implies --unresolved-symbols=report-all. + if (this->Bgroup() && !this->user_set_unresolved_symbols()) + this->set_unresolved_symbols("report-all"); + + // -shared implies --allow-shlib-undefined. Currently + // ---allow-shlib-undefined controls warnings issued based on the + // -symbol table. --unresolved-symbols controls warnings issued + // -based on relocations. if (this->shared() && !this->user_set_allow_shlib_undefined()) this->set_allow_shlib_undefined(true); -- cgit v1.1