[patch] aix: ignore -bbigtoc linker switch

Richard Sandiford rdsandiford@googlemail.com
Wed Apr 20 11:36:00 GMT 2011


Tristan Gingold <gingold@adacore.com> writes:
> config/mh-ppc-aix has the following lines:
>
> BOOT_LDFLAGS = -Wl,-bbigtoc
> LDFLAGS = `case $(CC) in *gcc*) echo -Wl,-bbigtoc ;; esac;`
>
> Unfortunately, gnu-ld doesn't support -bbigtoc at all.  The following patch makes ld silently ignore it, and thus can be
> used to build binutils.

Yeah, I'd hit this too, and TBH was just commenting out the mh-ppc-aix
lines.  I was hoping to look at a "real" implementation at some point,
but time as always got the better of me.  I agree your patch is the
best thing for now.

> Ok for trunk ?
>
> Tristan.
>
> ld/
> 2011-04-18  Tristan Gingold  <gingold@adacore.com>
>
> 	* emultempl/aix.em (_add_options): Ignore -bbigtoc switch.

OK, thanks.  I think it should go on the branch too.

Richard



More information about the Binutils mailing list