about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-01-05 11:22:25 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2021-01-05 11:22:25 -0300
commit6cc992412cd8c8555ca5d67fa2b994e38ccb6c1f (patch)
tree0f311cdbe45e33452dfc2078f2b752d852559a5c
parentf5082c70101d5b6c10c312f86c9de7fecf0075b6 (diff)
downloadglibc-6cc992412cd8c8555ca5d67fa2b994e38ccb6c1f.tar.gz
glibc-6cc992412cd8c8555ca5d67fa2b994e38ccb6c1f.tar.xz
glibc-6cc992412cd8c8555ca5d67fa2b994e38ccb6c1f.zip
alpha: Provide wait4 for static library [BZ #27150]
This ia regression from 09153638cfef91, versioned_symbol acts as
weak_alias for !SHARED but it is undefined to avoid non versioned
alias from the generic implementation.

Checked with a build for alpha-linux-gnu.
-rw-r--r--sysdeps/unix/sysv/linux/alpha/wait4.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/alpha/wait4.c b/sysdeps/unix/sysv/linux/alpha/wait4.c
index 40df07cc2a..ed425da910 100644
--- a/sysdeps/unix/sysv/linux/alpha/wait4.c
+++ b/sysdeps/unix/sysv/linux/alpha/wait4.c
@@ -21,6 +21,8 @@
 #undef weak_alias
 #define weak_alias(a, b)
 #include <sysdeps/unix/sysv/linux/wait4.c>
+#undef weak_alias
+#define weak_alias(name, aliasname) _weak_alias (name, aliasname)
 versioned_symbol (libc, __wait4, wait4, GLIBC_2_1);
 
 /* GLIBC_2_0 version is implemented at osf_wait4.c.  */