summaryrefslogtreecommitdiffstats
path: root/gold/object.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-10-10 19:02:56 +0000
committerIan Lance Taylor <iant@google.com>2007-10-10 19:02:56 +0000
commit9e2dcb779c27737af88468b29aa1d2a15b0b770f (patch)
tree70f6ac5955fb7855d0773850f9763675f0c4a0d4 /gold/object.cc
parent7500260a55897928017d06874240074c282dbb4a (diff)
downloadppe42-binutils-9e2dcb779c27737af88468b29aa1d2a15b0b770f.tar.gz
ppe42-binutils-9e2dcb779c27737af88468b29aa1d2a15b0b770f.zip
Implement -s and -S options which strip symbols.
Diffstat (limited to 'gold/object.cc')
-rw-r--r--gold/object.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/object.cc b/gold/object.cc
index cfdb17c259..b8843e9c61 100644
--- a/gold/object.cc
+++ b/gold/object.cc
@@ -715,6 +715,9 @@ void
Sized_relobj<size, big_endian>::write_local_symbols(Output_file* of,
const Stringpool* sympool)
{
+ if (parameters->strip_all())
+ return;
+
gold_assert(this->symtab_shndx_ != -1U);
if (this->symtab_shndx_ == 0)
{
OpenPOWER on IntegriCloud