This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
gold patch committed: Add -dy and -dn options
- From: Ian Lance Taylor <iant at google dot com>
- To: binutils at sourceware dot org
- Date: Mon, 07 Mar 2011 14:51:52 -0800
- Subject: gold patch committed: Add -dy and -dn options
This patch to gold adds the -dy and -dn options, which are used by the
Solaris linker. They are synonyms for -Bdynamic and -Bshared
respectively. Committed to mainline and 2.21 branch.
Ian
2011-03-07 Ian Lance Taylor <iant@google.com>
PR gold/12525
* options.h (class General_options): Add -dy and -dn.
Index: options.h
===================================================================
RCS file: /cvs/src/src/gold/options.h,v
retrieving revision 1.154
diff -u -p -r1.154 options.h
--- options.h 25 Jan 2011 06:08:47 -0000 1.154
+++ options.h 7 Mar 2011 22:44:50 -0000
@@ -623,6 +623,10 @@ class General_options
DEFINE_bool_alias(Bstatic, Bdynamic, options::ONE_DASH, '\0',
N_("-l does not search for shared libraries"), NULL,
true);
+ DEFINE_bool_alias(dy, Bdynamic, options::ONE_DASH, '\0',
+ N_("alias for -Bdynamic"), NULL, false);
+ DEFINE_bool_alias(dn, Bdynamic, options::ONE_DASH, '\0',
+ N_("alias for -Bstatic"), NULL, true);
DEFINE_bool(Bsymbolic, options::ONE_DASH, '\0', false,
N_("Bind defined symbols locally"), NULL);