This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: Permit two dashes with --retain-symbols-file
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Wed, 30 Dec 2009 22:06:42 -0800
- Subject: gold patch committed: Permit two dashes with --retain-symbols-file
The -retain-symbols-file was added as requiring exactly one dash.
There is no need for that, and that's not how GNU ld works. I changed
it to permit either one or two dashes. Committed to mainline.
Ian
2009-12-30 Ian Lance Taylor <iant@google.com>
PR 10980
* options.h (class General_options): Permit two dashes with
--retain-symbols-file.
Index: options.h
===================================================================
RCS file: /cvs/src/src/gold/options.h,v
retrieving revision 1.124
diff -p -u -r1.124 options.h
--- options.h 31 Dec 2009 01:57:55 -0000 1.124
+++ options.h 31 Dec 2009 06:04:32 -0000
@@ -803,8 +803,8 @@ class General_options
DEFINE_bool(relax, options::TWO_DASHES, '\0', false,
N_("Relax branches on certain targets"), NULL);
- DEFINE_string(retain_symbols_file, options::EXACTLY_ONE_DASH, '\0', NULL,
- N_("keep only symbols listed in this file"), N_("[file]"));
+ DEFINE_string(retain_symbols_file, options::TWO_DASHES, '\0', NULL,
+ N_("keep only symbols listed in this file"), N_("FILE"));
// -R really means -rpath, but can mean --just-symbols for
// compatibility with GNU ld. -rpath is always -rpath, so we list