From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Ulrich Drepper <drepper@redhat.com>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: ppc/ppc64 and x86 vsyscalls
Date: Tue, 09 Mar 2004 22:05:20 +1100 [thread overview]
Message-ID: <1078830318.9746.3.camel@gaston> (raw)
In-Reply-To: <404D7AC3.9050207@redhat.com>
> This is no reason for not using the DSO form. The userlevel code finds
> the vDSO via the auxiliary vector. By passing up different values for
> 32 and 64 bit processes you easily handle the last problem.
>
> Many functions are no real issue either. It not inefficient to use the
> symbol table.
Thanks for the clue.
> The only issue is that the vDSO should (IMO must) be position
> independent. You certainly want to map the same copy in each address
> space. This means the symbol table cannot contain addresses, only offsets.
Ok. The problem is building the DSO in the kernel from the various
individual functions depending on the CPU & app mode.
> .../...
>
> Why lack? As a real DSO the vDSO can use the normal unwind info
> handling userlevel DSOs use, too. I do not see a reason which this
> cannot work. The unwind info for DSOs is position-independent so it
> should work just fine.
Ok. So the challenge is to write the necessary code in the kernel
to build that DSO based on the various functions after detection
of the CPU type.
Another option would be to pre-build a bunch of them at kernel compile
time. I have to investigate. The risk is that we end up with too
many combinations, thus bloating the kernel image.
Ben.
next prev parent reply other threads:[~2004-03-09 11:08 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-08 1:17 ppc/ppc64 and x86 vsyscalls Benjamin Herrenschmidt
2004-03-09 8:05 ` Ulrich Drepper
2004-03-09 11:05 ` Benjamin Herrenschmidt [this message]
2004-03-09 21:14 ` Ulrich Drepper
2004-03-09 21:33 ` Benjamin Herrenschmidt
2004-03-10 0:35 ` Ulrich Drepper
2004-03-10 2:08 ` Benjamin Herrenschmidt
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=1078830318.9746.3.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=drepper@redhat.com \
--cc=linux-kernel@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