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]: xcoff: fix 16 bit relative branches


On Jul 17, 2013, at 1:45 PM, Richard Sandiford wrote:
> 
> Tristan Gingold <gingold@adacore.com> writes:
>>> Is it really the case that R_RBR is treated as a 4-byte relocation
>>> even when r_rsize specifies a bitsize of 16?  There don't seem to be
>>> any other entries where that's true, and it feels odd for R_RBR to
>>> have different (byte) sizes from R_BA and R_RBA while having the
>>> same bitsize.
>> 
>> I think that currently many entries of xcoff_howto_table have
>> junk values.  Some comments are even misleading (eg: R_RBA is
>> not a relative branch).  I plan to fix that later, but currently
>> I just want to have gas + ld in a working shape.
> 
> It looks like the current size of 1 is right in this case though.
> I just tried:
> 
> 	.extern	c
> 	bne	c

Just for the record, with binutils 2.22+, I get:

aix3.s: Assembler messages:
aix3.s:2: Error: reloc 392 not supported by object file format

But I agree to make it right!

Tristan.


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