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: FYI: patches for powerpc-aix...


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!

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.

-- 
Alan Modra
Australia Development Lab, IBM


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