This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: turn off VDSO on glibc side
- From: Ondrej Bilka <neleai at seznam dot cz>
- To: libc-alpha at sourceware dot org
- Date: Mon, 1 Jul 2013 22:24:14 +0200
- Subject: Re: turn off VDSO on glibc side
- References: <87fvvymich dot fsf at proton dot in dot awa dot tohoku dot ac dot jp> <201307011258 dot 55684 dot vapier at gentoo dot org> <20130701200321 dot GB7139 at popelka dot ms dot mff dot cuni dot cz>
On Mon, Jul 01, 2013 at 12:58:54PM -0400, Mike Frysinger wrote:
> On Monday 01 July 2013 11:05:02 heroxbd wrote:
> > After some STFW, it seems related to
> >
> > https://bugzilla.redhat.com/show_bug.cgi?id=673616
> >
> > The question is, can I just disable vdso loading in dynamic linker of
> > glibc instead of requesting SA to upgrade the kernel?
>
> there aren't any configure flags or runtime knobs that i know of on the glibc
> side of things. you could edit elf/dl-support.c and try commenting out the
> parts that handle AT_SYSINFO and AT_SYSINFO_EHDR. or edit
> sysdeps/unix/sysv/linux/x86_64/gettimeofday.c and force it to always use the
> syscall version at the end of the file.
>
> or upgrade your kernel to one that isn't buggy :p
>
> > PS2, the toolchains here are from Gentoo, not sure if it is related to
> > Gentoo patches.
>
> i doubt it. but maybe i'm partial :p.
> -mike
Another workaround is to write a little library with syscall version of
gettimeofday and add it to LD_PRELOAD.