This is the mail archive of the
mailing list for the binutils project.
Re: [patch] aix: ignore -bbigtoc linker switch
On Apr 20, 2011, at 1:36 PM, Richard Sandiford wrote:
> Tristan Gingold <email@example.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.
Honestly, I am not sure that -bbigtoc is better than -mminimal-toc, if the toc size is exceeded.
I am wondering wether a multi-toc approach would be better.
Anyway, work for the future...
> I agree your patch is the
> best thing for now.
>> Ok for trunk ?
>> 2011-04-18 Tristan Gingold <firstname.lastname@example.org>
>> * emultempl/aix.em (_add_options): Ignore -bbigtoc switch.
> OK, thanks. I think it should go on the branch too.