This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold patch obvious] Fix -z lazy to negate a prior -z now
- From: Cary Coutant <ccoutant at google dot com>
- To: Binutils <binutils at sourceware dot org>, Ian Lance Taylor <iant at google dot com>
- Date: Mon, 11 Oct 2010 16:10:32 -0700
- Subject: [gold patch obvious] Fix -z lazy to negate a prior -z now
Currently, gold processes the -z lazy option, but treats it as a nop.
This patch fixes -z lazy to negate a previous -z now.
Checking in as obvious.
-cary
* options.h (class General_options): Define -z lazy as an
alias for -z now.
Index: options.h
===================================================================
RCS file: /cvs/src/src/gold/options.h,v
retrieving revision 1.150
diff -u -p -r1.150 options.h
--- options.h 9 Sep 2010 15:29:01 -0000 1.150
+++ options.h 11 Oct 2010 23:07:06 -0000
@@ -1097,9 +1097,9 @@ class General_options
DEFINE_bool(interpose, options::DASH_Z, '\0', false,
N_("Mark object to interpose all DSOs but executable"),
NULL);
- DEFINE_bool(lazy, options::DASH_Z, '\0', false,
- N_("Mark object for lazy runtime binding (default)"),
- NULL);
+ DEFINE_bool_alias(lazy, now, options::DASH_Z, '\0',
+ N_("Mark object for lazy runtime binding (default)"),
+ NULL, true);
DEFINE_bool(loadfltr, options::DASH_Z, '\0', false,
N_("Mark object requiring immediate process"),
NULL);