This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: Accept -i as synonym for -r
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Mon, 16 May 2011 16:42:02 -0700
- Subject: gold patch committed: Accept -i as synonym for -r
This patch changes gold's handling of the -i option to match GNU ld's:
to treat -i as a synonym for -r. Committed to mainline.
Ian
2011-05-16 Ian Lance Taylor <iant@google.com>
* options.h (class General_options): Make -i a synonym for -r.
Index: options.h
===================================================================
RCS file: /cvs/src/src/gold/options.h,v
retrieving revision 1.157
diff -p -u -r1.157 options.h
--- options.h 12 Apr 2011 00:44:48 -0000 1.157
+++ options.h 16 May 2011 23:41:00 -0000
@@ -761,9 +761,6 @@ class General_options
DEFINE_string(soname, options::ONE_DASH, 'h', NULL,
N_("Set shared library name"), N_("FILENAME"));
- DEFINE_bool(i, options::EXACTLY_ONE_DASH, '\0', false,
- N_("Ignored"), NULL);
-
DEFINE_double(hash_bucket_empty_fraction, options::TWO_DASHES, '\0', 0.0,
N_("Min fraction of empty buckets in dynamic hash"),
N_("FRACTION"));
@@ -896,6 +893,8 @@ class General_options
DEFINE_bool(relocatable, options::EXACTLY_ONE_DASH, 'r', false,
N_("Generate relocatable output"), NULL);
+ DEFINE_bool_alias(i, relocatable, options::EXACTLY_ONE_DASH, '\0',
+ N_("Synonym for -r"), NULL, false);
DEFINE_bool(relax, options::TWO_DASHES, '\0', false,
N_("Relax branches on certain targets"), NULL);