gold --format incompatible with gnu ld

Ian Lance Taylor
Fri Mar 8 22:36:00 GMT 2013

On 3/8/13, Cristian Rodríguez <> wrote:
> recently ran into a problem linking with gold
>   -->
> The issue at hand is that GNU ld accepts --format=default but gold
> doesn't. and GNU LD does not accept plain --format=elf so there is no
> generic solution.
> can gold be changed so "default" means "elf" or provides the same
> behavior as gnu ld ?

I didn't know --format=default worked.  Fixed for gold like so.
Committed to mainline.


2013-03-08  Ian Lance Taylor  <>

	* (General_options::string_to_object_format): Accept
-------------- next part --------------
A non-text attachment was scrubbed...
Name: foo.patch
Type: text/x-patch
Size: 637 bytes
Desc: not available
URL: <>

More information about the Binutils mailing list