Re: Loadable module and kernel gp

From: Erich Focht <efocht_at_hpce.nec.com>
Date: 2004-01-23 21:45:20
At compile time you can get it from the System.map. The symbol is at
the end and called __gp. Of course you might want to have some
cross-checks that you pick up the right System.map. I usually take
some known and exported symbols.

But there's surely some dynamic way, too...

Regards,
Erich

On Friday 23 January 2004 10:52, Christian Hildner wrote:
> does anybody know a simple way for a loadable module to get the gp value
> of the kernel? Is there any sample code?
>
> Christian


-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Jan 23 05:46:40 2004

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