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: PPC assembler problem


Alan Modra wrote:
> On Thu, Apr 29, 2010 at 09:56:00AM +0200, Gunther Nikl wrote:
>>
>> -- snip --
>>         lis 0,symbol+520@ha
>>         addic 4,0,symbol@l+520
>> -- snip --
>>
>> [...] Is the placement of the addition after the @l reloc a GCC
>> bug and GAS is simply to lenient?
> 
> Yes, I think this is a gcc bug.  In fact, I ran into something like
> this when working on bigtoc support.

If the generated instruction style for the addic is invalid, then
GAS should reject this style, right? FWIW, GAS does also accept the
add expression after the reloc for the lis instruction, but I guess
that is expected.
I am not sure how to proceed from here. If GAS gets stricter old
GCC versions that have that bug (AFAICT that is GCC3+) might break
eventually. Should I post a RFC patch on the GCC mailing list?

Thank you,
Gunther Nikl


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