aboutsummaryrefslogtreecommitdiff
path: root/gold/options.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2009-12-30 20:23:29 +0000
committerIan Lance Taylor <ian@airs.com>2009-12-30 20:23:29 +0000
commitebcc83046fa1227ac895ae9a2d715b547d62ad08 (patch)
tree954725e482503e8a0f81d1963e57408fe353fe63 /gold/options.h
parent7b838ca220ab177d288bca2629d73b50ebbe7abc (diff)
downloadgdb-ebcc83046fa1227ac895ae9a2d715b547d62ad08.zip
gdb-ebcc83046fa1227ac895ae9a2d715b547d62ad08.tar.gz
gdb-ebcc83046fa1227ac895ae9a2d715b547d62ad08.tar.bz2
PR 10670
* options.h (class General_options): Add -x/--discard-all. * object.cc (Sized_relobj::do_count_local_symbols): Handle --discard-all. If the local symbol needs a dynamic entry, check that before handling --discard-locals.
Diffstat (limited to 'gold/options.h')
-rw-r--r--gold/options.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/options.h b/gold/options.h
index 399c301..be7b018 100644
--- a/gold/options.h
+++ b/gold/options.h
@@ -654,6 +654,8 @@ class General_options
N_("Try to detect violations of the One Definition Rule"),
NULL);
+ DEFINE_bool(discard_all, options::TWO_DASHES, 'x', false,
+ N_("Delete all local symbols"), NULL);
DEFINE_bool(discard_locals, options::TWO_DASHES, 'X', false,
N_("Delete all temporary local symbols"), NULL);