public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Erich Focht <efocht@hpce.nec.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Loadable module and kernel gp
Date: Fri, 23 Jan 2004 10:45:20 +0000	[thread overview]
Message-ID: <200401231145.21011.efocht@hpce.nec.com> (raw)
In-Reply-To: <4010EEC0.7020003@hob.de>

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



  reply	other threads:[~2004-01-23 10:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-23  9:52 Loadable module and kernel gp Christian Hildner
2004-01-23 10:45 ` Erich Focht [this message]
2004-01-23 22:28 ` David Mosberger
2004-01-23 23:14 ` Luck, Tony
2004-01-26  8:05 ` Christian Hildner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200401231145.21011.efocht@hpce.nec.com \
    --to=efocht@hpce.nec.com \
    --cc=linux-ia64@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox