aboutsummaryrefslogtreecommitdiff
path: root/gold/options.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me+cygwin@cgf.cx>2009-01-23 17:05:16 +0000
committerChristopher Faylor <me+cygwin@cgf.cx>2009-01-23 17:05:16 +0000
commit3b2935444fe89c883ffe7964b69556f3580ee1ef (patch)
tree64f8141f0daa742345420353838d76d7d81e4124 /gold/options.cc
parentda0617127224d6e4603c2d4c2bae96eb30a1834c (diff)
downloadfsf-binutils-gdb-3b2935444fe89c883ffe7964b69556f3580ee1ef.zip
fsf-binutils-gdb-3b2935444fe89c883ffe7964b69556f3580ee1ef.tar.gz
fsf-binutils-gdb-3b2935444fe89c883ffe7964b69556f3580ee1ef.tar.bz2
* options.h (General_options::gc_sections): Define as a no-op for now.
(General_options::no_keep_memory): Ditto. (General_options::Bshareable): Define. * options.cc (General_options::finalize): Honor -Bshareable.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 6b2b5cf..ff9bd41 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -696,6 +696,9 @@ General_options::finalize()
if (this->strip_debug_non_line())
this->set_strip_debug_gdb(true);
+ if (this->Bshareable())
+ this->set_shared(true);
+
// If the user specifies both -s and -r, convert the -s to -S.
// -r requires us to keep externally visible symbols!
if (this->strip_all() && this->relocatable())