RE: optimize __gp location

From: Luck, Tony <>
Date: 2005-01-22 12:02:52
>-  __gp = ADDR(.got) + 0x200000;
>+  __gp = _end - 0x200000;

Did we used to link the ".got" section earlier?  It's after "data" now,
but the expression used there might have made sense if ".got" was before
the "data".

_end - 0x200000 may work for you now, but won't this be very configuration
dependent?  If I configure lots of drivers with "=y" option, and they
declare lots of "bss" objects, then __gp may still be too high to reach the
interesting data objects.

Would an expression anchoring on the ".sdata" section be better?

To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to
More majordomo info at
Received on Fri Jan 21 20:03:21 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:35 EST