From: Ulrich Drepper <drepper@redhat.com>
To: john stultz <johnstul@us.ibm.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: Re: [RFC][PATCH] linux-2.6.4-pre1_vsyscall-gtod_B3-part3 (3/3)
Date: Thu, 04 Mar 2004 00:09:57 -0800 [thread overview]
Message-ID: <4046E455.4010605@redhat.com> (raw)
In-Reply-To: <1078368197.10076.252.camel@cog.beaverton.ibm.com>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
john stultz wrote:
> Before we start up this larger debate again, might there be some short
> term solution for my patch that would satisfy both of you?
I suggest the following:
~ define a symbol __kernel_gettimeofday_offset in the vdso's symbol
table. This should be an absolute symbol containing the offset of the
gettimeofday implementation from the beginning of the vdso (the address
passed up in the auxiliary vector)
~ glibc can then use the equivalent of
dlsym("__kernel_gettimeofday_offset"). If the symbol is not defined,
it's not used (doh). If it is defined, the final function address is
computed by adding the offset to the vdso address.
This ensures a direct jump and it still keeps the vdso relocatable
without modifying the symbol table.
- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD4DBQFARuRa2ijCOnn/RHQRAnITAKCeS30ShpbeadFA5n/TlaTOXYNzygCVG3tg
2HCPVqo5DRtQfUoKwLY6vQ==
=ST37
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2004-03-04 8:10 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-04 0:11 [RFC][PATCH] vsyscall-gtod_B3 (0/3) john stultz
2004-03-04 0:12 ` [RFC][PATCH] linux-2.6.4-pre1_vsyscall-gtod_B3-part1 (1/3) john stultz
2004-03-04 0:13 ` [RFC][PATCH] linux-2.6.4-pre1_vsyscall-gtod_B3-part2 (2/3) john stultz
2004-03-04 0:14 ` [RFC][PATCH] linux-2.6.4-pre1_vsyscall-gtod_B3-part3 (3/3) john stultz
2004-03-04 0:55 ` Andrea Arcangeli
2004-03-04 2:16 ` Ulrich Drepper
2004-03-04 2:43 ` john stultz
2004-03-04 3:14 ` Andrea Arcangeli
2004-03-04 8:09 ` Ulrich Drepper [this message]
2004-03-04 19:02 ` john stultz
2004-03-04 2:47 ` Andrea Arcangeli
2004-03-04 2:54 ` john stultz
2004-03-04 3:15 ` Andrea Arcangeli
2004-03-04 8:57 ` Jakub Jelinek
2004-03-04 16:45 ` Andrea Arcangeli
2004-03-04 8:00 ` Jamie Lokier
2004-03-04 8:37 ` Jakub Jelinek
2004-03-04 17:48 ` Andrea Arcangeli
2004-03-04 0:15 ` [RFC] vsyscall-gtod_test_B3.tar.gz john stultz
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=4046E455.4010605@redhat.com \
--to=drepper@redhat.com \
--cc=johnstul@us.ibm.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