PATCH COMMITTED: Implement --no-undefined

Ian Lance Taylor iant@google.com
Tue May 6 20:44:00 GMT 2008


"Andreas Hartmetz" <ahartmetz@gmail.com> writes:

> + // --no-undefined is an alias for "-z defs"; the special parser function
> + // also modifies the boolean "defs".
>
> + DEFINE_special(no_undefined, options::TWO_DASHES, '\0',
> + N_("Report undefined symbols (even with --shared)"),
> + NULL);

I committed this patch to implement --no-undefined.  Rather than use
DEFINE_special, I introduced a new macro DEFINE_bool_alias.  This
packs all the ugliness into one place, rather than distributing it
across several options.  I actually implemented --undefined, and
allowed --no-undefined to appear as a standard negative option.

Ian


2008-05-06  Ian Lance Taylor  <iant@google.com>

	* options.h (DEFINE_var): Add set_user_set_##varname__.
	(DEFINE_bool_alias): New macro.
	(class General_options): Define -Bstatic using DEFINE_bool_alias
	rather than DEFINE_special.  Add --undefined as an alias for -z
	defs.
	* options.cc (General_options::parse_Bstatic): Remove.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 4663 bytes
Desc: Implement --no-undefined
URL: <https://sourceware.org/pipermail/binutils/attachments/20080506/566e8b56/attachment.bin>


More information about the Binutils mailing list