Implement -s and -S options which strip symbols.

This commit is contained in:
Ian Lance Taylor
2007-10-10 19:02:56 +00:00
parent 7500260a55
commit 9e2dcb779c
7 changed files with 138 additions and 38 deletions

View File

@@ -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)
{