diff mbox series

[COMMITTED] alpha: Provide wait4 for static library [BZ #27150]

Message ID 20210105142957.198290-1-adhemerval.zanella@linaro.org
State Committed
Commit 6cc992412cd8c8555ca5d67fa2b994e38ccb6c1f
Headers show
Series [COMMITTED] alpha: Provide wait4 for static library [BZ #27150] | expand

Commit Message

Adhemerval Zanella Jan. 5, 2021, 2:29 p.m. UTC
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.
---
 sysdeps/unix/sysv/linux/alpha/wait4.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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.  */