gold patch committed: Add some minor options

Ian Lance Taylor
Tue Jan 5 00:01:00 GMT 2010

The GNU linker supports the options -assert, -g, and -i.  These
options do nothing.  However, according to PR 10980, there are
packages which nevertheless use these options.  This patch adds these
no-op options to gold.

The GNU linker also supports the -G option which in some cases is a
synonym for --shared.  In other cases it sets the size at which data
items should be moved into the small data section.  Fortunately no
current gold target cares about the latter case yet, so for now I've
just made -G be a short option for --shared.

Committed to mainline.


2010-01-04  Ian Lance Taylor  <>

	PR 10980
	* options.h (class General_options): Add -G as a short version of
	--shared.  Add no-op options -assert, -g, and -i.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-diff
Size: 1832 bytes
Desc: options
URL: <>

More information about the Binutils mailing list