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: m68hc11 %hi relocate problem with carry


On 03/02/2012 11:25 AM, James Murray wrote:
> I've found what appears to be a bug (or at least a limitation) when
> using a %hi assembler directive in m68hc11. This is supposed to return
> the high byte of the resolved symbol, but if the low byte overflows, the
> carry is missed.
> 
> Could someone point me at some example code in other targets that I
> could study in order to fix m68hc11 ?

Some examples are R_ALPHA_GPREL{HIGH,LOW} and R_PPC_ADDR16_{LO,HA}.
Note especially that R_PPC_ADDR16_HI is different from HA, in that
HI does *not* assume carry, but HA does.


r~


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