Possibly gcc/ld bug

Ian Lance Taylor iant@google.com
Fri Oct 30 04:20:00 GMT 2009


Bluddy <yotambarnoy@gmail.com> writes:

> Notice that ld is chaining LO16 relocations after HI16's. However, it's
> doing something completely illegal since the LO16 for 08aecb54 is not
> preceded by a valid HI16 entry! ld got confused by the two address ranges. 

While the calculation of a HI16 reloc requires the LO16 reloc, the
reverse is not true: you can calculate LO16 without HI16.  The GNU
toolchain takes advantage of this fact.

Ian



More information about the Gcc mailing list