aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/unix/sysv/linux/alpha
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-02-13 08:27:27 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2020-02-13 08:27:27 -0300
commitd3436a7f3240b8a657d35e417515d4e18fc9e396 (patch)
treef2c1837b879d4ce4a67627551e1c6bfad669f527 /sysdeps/unix/sysv/linux/alpha
parentfd3540deff239355a01314947b9313042654c1e7 (diff)
downloadglibc-d3436a7f3240b8a657d35e417515d4e18fc9e396.zip
glibc-d3436a7f3240b8a657d35e417515d4e18fc9e396.tar.gz
glibc-d3436a7f3240b8a657d35e417515d4e18fc9e396.tar.bz2
alpha: Fix static gettimeofday symbol
By undef strong_alias on alpha implementation, the default_symbol_version macro becomes an empty macro on static build. It fixes the issue introduced at c953219420. Checked on alpha-linux-gnu with a 'make check run-built-tests=no'.
Diffstat (limited to 'sysdeps/unix/sysv/linux/alpha')
-rw-r--r--sysdeps/unix/sysv/linux/alpha/gettimeofday.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/gettimeofday.c b/sysdeps/unix/sysv/linux/alpha/gettimeofday.c
index 7ad3c6a..25e8641 100644
--- a/sysdeps/unix/sysv/linux/alpha/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/alpha/gettimeofday.c
@@ -18,12 +18,9 @@
/* We can use the generic implementation, but we have to override its
default symbol version. */
-#undef weak_alias
-#define weak_alias(a,b)
-#undef strong_alias
-#define strong_alias(a, b)
+#define SET_VERSION
#include <time/gettimeofday.c>
-_weak_alias (___gettimeofday, __wgettimeofday);
+weak_alias (___gettimeofday, __wgettimeofday);
default_symbol_version (___gettimeofday, __gettimeofday, GLIBC_2.1);
default_symbol_version (__wgettimeofday, gettimeofday, GLIBC_2.1);