From fb86328ad89bed5340882b8c9f245ba93189a55c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 12 Aug 2007 19:33:45 +0000 Subject: * sysdeps/unix/sysv/linux/dl-vdso.c (_dl_vdso_vsym): Expect r_found_version structure as second parameter. * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION): Define. (_dl_vdso_vsym): Change type of second parameter accordingly. * sysdeps/unix/sysv/linux/x86-64/libc-start.c (_libc_vdso_platform_setup): Adjust. * sysdeps/unix/sysv/linux/pwoerpc/libc-start.c (_libc_vdso_platform_setup): Likewise. --- sysdeps/unix/sysv/linux/powerpc/libc-start.c | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'sysdeps/unix/sysv/linux/powerpc/libc-start.c') diff --git a/sysdeps/unix/sysv/linux/powerpc/libc-start.c b/sysdeps/unix/sysv/linux/powerpc/libc-start.c index d78876d40d..d1f321c44d 100644 --- a/sysdeps/unix/sysv/linux/powerpc/libc-start.c +++ b/sysdeps/unix/sysv/linux/powerpc/libc-start.c @@ -33,25 +33,24 @@ # undef __clock_getres # include -void *__vdso_gettimeofday; +void *__vdso_gettimeofday attribute_hidden; void *__vdso_clock_gettime; void *__vdso_clock_getres; void *__vdso_get_tbfreq; -static inline void _libc_vdso_platform_setup (void) - { - __vdso_gettimeofday = _dl_vdso_vsym ("__kernel_gettimeofday", - "LINUX_2.6.15"); +static inline void +_libc_vdso_platform_setup (void) +{ + PREPARE_VERSION (linux2615, "LINUX_2.6.15", 123718565); - __vdso_clock_gettime = _dl_vdso_vsym ("__kernel_clock_gettime", - "LINUX_2.6.15"); + __vdso_gettimeofday = _dl_vdso_vsym ("__kernel_gettimeofday", &linux2615); - __vdso_clock_getres = _dl_vdso_vsym ("__kernel_clock_getres", - "LINUX_2.6.15"); + __vdso_clock_gettime = _dl_vdso_vsym ("__kernel_clock_gettime", &linux2615); - __vdso_get_tbfreq = _dl_vdso_vsym ("__kernel_vdso_get_tbfreq", - "LINUX_2.6.15"); - } + __vdso_clock_getres = _dl_vdso_vsym ("__kernel_clock_getres", &linux2615); + + __vdso_get_tbfreq = _dl_vdso_vsym ("__kernel_vdso_get_tbfreq", &linux2615); +} # define VDSO_SETUP _libc_vdso_platform_setup #endif -- cgit v1.2.1