Re: [Fastboot] [PATCH]IA64 kexec/kdump patch for INIT

Luck, Tony
2006-09-07T17:03:27Z

On Thu, Sep 07, 2006 at 06:44:30PM +0200, Andreas Schwab wrote:
> 0 is modified by the result of the GOT relocation for __gp
The 0 is the already modified value.

> __gp has no special meaning for gcc. It's just another global variable.

Precisely the problem. On ia64 gcc likes to compute the address
of global variables as offsets from __gp ... which it knows is
always available in r1. So __gp gets no special treatment at all,
gcc knows that __gp = GOT + offset (and for __gp "offset" is 0).

-Tony