m68hc11 %hi relocate problem with carry

Richard Henderson rth@redhat.com
Fri Mar 2 20:41:00 GMT 2012


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~



More information about the Binutils mailing list