aboutsummaryrefslogtreecommitdiff
path: root/gold/options.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/options.cc
parent7500260a55897928017d06874240074c282dbb4a (diff)
downloadgdb-9e2dcb779c27737af88468b29aa1d2a15b0b770f.zip
gdb-9e2dcb779c27737af88468b29aa1d2a15b0b770f.tar.gz
gdb-9e2dcb779c27737af88468b29aa1d2a15b0b770f.tar.bz2
Implement -s and -S options which strip symbols.
Diffstat (limited to 'gold/options.cc')
-rw-r--r--gold/options.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/options.cc b/gold/options.cc
index 4ddb1ac..bd9f797 100644
--- a/gold/options.cc
+++ b/gold/options.cc
@@ -334,6 +334,10 @@ options::Command_line_options::options[] =
GENERAL_ARG('R', "rpath", N_("Add DIR to runtime search path"),
N_("-R DIR, -rpath DIR"), ONE_DASH,
&General_options::add_to_rpath),
+ GENERAL_NOARG('s', "strip-all", N_("Strip all symbols"), NULL,
+ TWO_DASHES, &General_options::set_strip_all),
+ GENERAL_NOARG('S', "strip-debug", N_("Strip debugging information"), NULL,
+ TWO_DASHES, &General_options::set_strip_debug),
GENERAL_NOARG('\0', "eh-frame-hdr", N_("Create exception frame header"),
NULL, TWO_DASHES, &General_options::set_create_eh_frame_hdr),
GENERAL_ARG('\0', "rpath-link",
@@ -378,6 +382,7 @@ General_options::General_options()
optimization_level_(0),
output_file_name_("a.out"),
is_relocatable_(false),
+ strip_(STRIP_NONE),
create_eh_frame_hdr_(false),
rpath_(),
rpath_link_(),