summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-08-24 18:24:03 +0000
committerUlrich Drepper <drepper@redhat.com>2007-08-24 18:24:03 +0000
commitd250df8c5773e4aa7a02664659a8c4429d837a85 (patch)
tree24a4218600b00de5bc423567704fc801cf7b212f
parent88f61aafdefdf6f900b261371b250e7f6de5a97f (diff)
* sysdeps/unix/sysv/linux/x86_64/init-first.c
(_libc_vdso_platform_setup): Avoid using exported variable by using alias.
-rw-r--r--ChangeLog4
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/init-first.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c319a705b7..b87026ccdb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-08-24 Ulrich Drepper <drepper@redhat.com>
+ * sysdeps/unix/sysv/linux/x86_64/init-first.c
+ (_libc_vdso_platform_setup): Avoid using exported variable by using
+ alias.
+
* resolv/arpa/nameser.h (NS_OPT_DNSSEC_OK): Define.
* sysdeps/unix/sysv/linux/i386/syscalls.list: No reason to mark
diff --git a/sysdeps/unix/sysv/linux/x86_64/init-first.c b/sysdeps/unix/sysv/linux/x86_64/init-first.c
index 387fecae52..e9cf5646b5 100644
--- a/sysdeps/unix/sysv/linux/x86_64/init-first.c
+++ b/sysdeps/unix/sysv/linux/x86_64/init-first.c
@@ -22,7 +22,9 @@
int (*__vdso_gettimeofday) (struct timeval *, void *) attribute_hidden;
-int (*__vdso_clock_gettime) (clockid_t, struct timespec *);
+int (*__vdso_clock_gettime) (clockid_t, struct timespec *)
+ __attribute__ ((nocommon));
+strong_alias (__vdso_clock_gettime, __GI___vdso_clock_gettime attribute_hidden)
static inline void
@@ -40,7 +42,7 @@ _libc_vdso_platform_setup (void)
p = _dl_vdso_vsym ("clock_gettime", &linux26);
PTR_MANGLE (p);
- __vdso_clock_gettime = p;
+ __GI___vdso_clock_gettime = p;
}
# define VDSO_SETUP _libc_vdso_platform_setup