From 94eeeec04be8efae1a85d7c224e0026ee18ee6e7 Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Wed, 6 Feb 2019 09:10:31 +0100 Subject: [PATCH] S390: Fix introduction of __wmemcmp and weak wmemcmp symbols. The recent commit 65f7767a914144ae303f7b9ae81865061793dcb9 has introduced __wmemcmp and the weak alias wmemcmp. This patch also introduces those symbols if glibc is build with CFLAGS="-march=z13" where the ifunc is omitted. ChangeLog: * sysdeps/s390/wmemcmp-vx.S: Add strong alias to __wmemcmp and weak alias to wmemcmp. --- ChangeLog | 5 +++++ sysdeps/s390/wmemcmp-vx.S | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 4988b0c632..3de4ca1f10 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2019-02-06 Stefan Liebler + + * sysdeps/s390/wmemcmp-vx.S: Add strong alias to + __wmemcmp and weak alias to wmemcmp. + 2019-02-06 Stefan Liebler [BZ #23403] diff --git a/sysdeps/s390/wmemcmp-vx.S b/sysdeps/s390/wmemcmp-vx.S index f40603bfb5..1baf9133c3 100644 --- a/sysdeps/s390/wmemcmp-vx.S +++ b/sysdeps/s390/wmemcmp-vx.S @@ -149,6 +149,7 @@ ENTRY(WMEMCMP_Z13) END(WMEMCMP_Z13) # if ! HAVE_WMEMCMP_IFUNC -strong_alias (WMEMCMP_Z13, wmemcmp) +strong_alias (WMEMCMP_Z13, __wmemcmp) +weak_alias (__wmemcmp, wmemcmp) # endif #endif