From: Stijn Volckaert <svolckae@elis.ugent.be>
To: linux-kernel@vger.kernel.org
Subject: Re: vdso feature requests from the Go people
Date: Sun, 15 Jun 2014 12:15:34 +0200 [thread overview]
Message-ID: <lnjrop$mlp$1@ger.gmane.org> (raw)
In-Reply-To: <CALCETrVya47r1j6YUHT4_=gb6Pb5qB4sGE5sfwmxievcjdTTUw@mail.gmail.com>
Andy Lutomirski schreef op 13/06/2014 17:34:
> On Thu, Jun 12, 2014 at 10:39 PM, H. Peter Anvin <hpa@zytor.com> wrote:
>> On 06/12/2014 09:36 PM, Andy Lutomirski wrote:
>>>
>>> 1. Parsing the vDSO is a PITA. What if we bundled the reference
>>> parser inside the vdso? Concretely, we could have AT_VDSO_FINDENTRY
>>> point to a function like:
>>>
>>> void *vdso_find_entry(const char *name, const char *version)
>>>
>>> Then things like Go and maybe even musl (and klibc?) could just call
>>> that function. And we'd never have to worry about maintaining
>>> compatibility with more and more weird vdso parsers.
>>>
>>> Implementing this could be as simple as shoving parse_vdso.c into the
>>> vdso, although vdso2c could help and allow a really simple in-vdso
>>> implementation.
>>>
>>
>> I'm not really sure how much of a win that is... you have to parse
>> *something*, and for the vast majority of all implementations there will
>> be a dynamic linker just sitting there, and that is what it *does*.
>
> I'm only aware of two implementations that work like that: glibc and
> musl. AFAIK neither one even tries to use the vdso when statically
> linked. IIRC, Bionic doesn't support the vdso at all, and Go has the
> present issue.
Glibc DOES use the VDSO even when it's statically linked. It uses the
AT_SYSINFO_EHDR it gets from the kernel to find the VDSO and it will
find any syms it needs dynamically.
--Stijn
prev parent reply other threads:[~2014-06-15 10:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-13 4:36 vdso feature requests from the Go people Andy Lutomirski
2014-06-13 4:46 ` Andy Lutomirski
2014-06-13 5:15 ` H. Peter Anvin
2014-06-13 5:23 ` Andy Lutomirski
2014-06-13 5:39 ` H. Peter Anvin
2014-06-15 9:39 ` Stijn Volckaert
2014-06-13 5:39 ` H. Peter Anvin
2014-06-13 15:34 ` Andy Lutomirski
2014-06-13 16:03 ` H. Peter Anvin
2014-06-15 10:15 ` Stijn Volckaert [this message]
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='lnjrop$mlp$1@ger.gmane.org' \
--to=svolckae@elis.ugent.be \
--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