FYI: patches for powerpc-aix...

Tristan Gingold gingold@adacore.com
Thu May 16 13:25:00 GMT 2013


On May 16, 2013, at 3:17 PM, Alan Modra wrote:

> On Thu, May 16, 2013 at 10:40:38AM +0200, Tristan Gingold wrote:
>> bfd/
>> 2013-05-16  Tristan Gingold  <gingold@adacore.com>
>> 
>> 	* coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_16.
>> 	* coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise.
>> 
>> gas/
>> 2013-05-15  Tristan Gingold  <gingold@adacore.com>
>> 
>> 	* config/tc-ppc.c (ppc_is_toc_sym): Symbols of class XMC_TC
>> 	are also TOC symbols.
> 
> OK thanks!

Let's wait for Richard comment before committing it!

> In your previous email, you said
>> 1) Usual references to TOC (as emitted by gcc, eg: lwz 3,LC..1(2))
>> were not recognized as is by ppc_is_toc_sym, because the symbol class
>> is now XMC_TC0. Previously the local symbol was discarded and replaced
>> by a reference to the XMC_TC symbol defined by the .tc pseudo
> 
> I was scratching my head over this exlanation, until I figured that
> the difference is caused by the XCOFF ppc_fix_adjustable().  So the
> bug was that when I moved the fixup handling code in md_assemble() to
> md_apply_fix(), I failed to take into account the intervening action
> of ppc_fix_adjustable() in changing XMC_TC symbols to XMC_TC0 plus an
> offset.

Ah sorry, I didn't mention it as I didn't remember where
this occurred.

Tristan.



More information about the Binutils mailing list