mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
linux: Use GLRO(dl_vdso_gettimeofday) on gettimeofday
The BZ#24967 fix (1bdda52fe9
) missed the gettimeofday for
architectures that define USE_IFUNC_GETTIMEOFDAY. Although it is not
an issue, since there is no pointer mangling, there is also no need
to call dl_vdso_vsym since the vDSO setup was already done by the
loader.
Checked on x86_64-linux-gnu and i686-linux-gnu.
This commit is contained in:
parent
7949f552cb
commit
02b195d30f
1 changed files with 4 additions and 4 deletions
|
@ -37,11 +37,11 @@ __gettimeofday_syscall (struct timeval *restrict tv, void *restrict tz)
|
||||||
}
|
}
|
||||||
|
|
||||||
# undef INIT_ARCH
|
# undef INIT_ARCH
|
||||||
# define INIT_ARCH() \
|
# define INIT_ARCH()
|
||||||
void *vdso_gettimeofday = dl_vdso_vsym (HAVE_GETTIMEOFDAY_VSYSCALL)
|
|
||||||
libc_ifunc (__gettimeofday,
|
libc_ifunc (__gettimeofday,
|
||||||
vdso_gettimeofday ? VDSO_IFUNC_RET (vdso_gettimeofday)
|
GLRO(dl_vdso_gettimeofday) != NULL
|
||||||
: (void *) __gettimeofday_syscall)
|
? VDSO_IFUNC_RET (GLRO(dl_vdso_gettimeofday))
|
||||||
|
: (void *) __gettimeofday_syscall)
|
||||||
|
|
||||||
# else
|
# else
|
||||||
int
|
int
|
||||||
|
|
Loading…
Add table
Reference in a new issue