This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] aix: ignore -bbigtoc linker switch


On Apr 20, 2011, at 1:36 PM, Richard Sandiford wrote:

> 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.

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 ?
>> 
>> 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.

Done, thanks.

Tristan.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]