This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH v2] Enable VDSO on statically linked programs.
- From: Rafael Avila de Espindola <rafael at espindo dot la>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: "libc-alpha\\@sourceware.org" <libc-alpha at sourceware dot org>, "H.J. Lu" <hjl dot tools at gmail dot com>
- Date: Mon, 24 Sep 2018 01:46:06 +0000
- Subject: Re: [PATCH v2] Enable VDSO on statically linked programs.
- References: <Rt9LNuZNJXNeI-mSgZ_YAja7MzVVLO7IYVyN2uyhHcnpBpJH9yzQATx-2GaiHZoMA6mScM6GvrheNFkdCQK4ZGmDbbXhVJ-RI1dp0AGlezAemail@example.com> <firstname.lastname@example.org>
- Reply-to: Rafael Avila de Espindola <rafael at espindo dot la>
"Florian Weimer" <email@example.com> writes:
> * Rafael Avila de Espindola:
>> The new version has fixed the indentation of preprocessor directives
>> and changed a few tests to also be linked statically. The tests don't
>> show that the VDSO is being used, but show that the functions now
>> using the VDSO still work.
> What's the size impact on binaries which did not need rtld before?
In a trivial program that just calls clock_gettime and printf size
text data bss dec hex filename
641724 20940 6016 668680 a3408 t-glibc
642500 20940 6048 669488 a3730 t-glibc-vdso
So it looks like most of the relevant code was already being linked in.