From: "Francis Moreau" <francis.moro@gmail.com>
To: "Ulrich Drepper" <drepper@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: x86_64: vsyscall vs vdso
Date: Mon, 17 Sep 2007 09:30:54 +0200 [thread overview]
Message-ID: <38b2ab8a0709170030k2b5dad5dja31edebf12ad9626@mail.gmail.com> (raw)
In-Reply-To: <a36005b50709161346t544d3927mfbca537c869c3c58@mail.gmail.com>
Hello Ulrich,
Thanks for taking time to respond !
On 9/16/07, Ulrich Drepper <drepper@gmail.com> wrote:
> On 9/16/07, Francis Moreau <francis.moro@gmail.com> wrote:
>> I'm a bit puzzled because vdso doesn't seem to be used on my fedora 7:
>> I just compiled a trivial program which just call gettimeofday() and
>> ld.so resolves this call with vsyscall's gettimeofday.
>>
>> Now I'm wondering when vdso is used, could anybody give me a clue ?
>
> F7 was released before the vdso for x86_64 was upstream so you should
> not expect anything else. F8 will use the available vdso. This
> doesn't just happen magically, changes to libc are needed.
>
You're right. I don't know why I thought vdso was older...
>
>> Another question: is vdso going to replace vsyscall at all ? If so how
>> are statically programs going to be handled ?
>
> Unfortunately the vsyscalls cannot ever go completely away.
> Statically linked apps, the bane of progress, will need them. There
> are also people updating kernels but not the user userland code.
>
Does that mean we'll need to keep 3 different implementations of gtod
in the kernel forever ?
> What we will have to do in future is to make vsyscalls configurable.
> Both a compile time option and a runtime option (perhaps also under
> control of SELinux) are likely needed.
I think signal trampolines will still need them too. So making
vsyscalls configurable doesn't seem to work, does it ?
I took a look to glibc-2.4 and it doesn't seem to use
__kernel_vsyscall vsyscall. Am I wrong ? If so could you point me
where it's used in the code ?
Another not so related question, hope you don't mind :)
I'm having hard time to understand how ld.so is working, specially the
dynamic symbol resolution after looking at the glibc code and reading
the ELF specification.
Do you know any others documents that could help ?
Thanks a lot.
--
Francis
next prev parent reply other threads:[~2007-09-17 7:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-16 20:24 Francis Moreau
2007-09-16 20:46 ` Ulrich Drepper
2007-09-17 7:30 ` Francis Moreau [this message]
2007-09-17 14:35 ` Ulrich Drepper
2007-09-17 20:22 ` Francis Moreau
2007-09-18 8:31 ` Mikael Pettersson
2007-09-17 20:31 ` Francis Moreau
2007-09-18 16:58 ` Ulrich Drepper
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=38b2ab8a0709170030k2b5dad5dja31edebf12ad9626@mail.gmail.com \
--to=francis.moro@gmail.com \
--cc=drepper@gmail.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
all inboxes | Powered by JetHome®