Implement -s and -S options which strip symbols.
[deliverable/binutils-gdb.git] / gold / options.cc
index 4ddb1acdbb2bad1441f32cd3419eccb16e278752..bd9f79729e725750f224fabe6bbf0086f52c999d 100644 (file)
@@ -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_(),
This page took 0.023704 seconds and 4 git commands to generate.