summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2019-02-06 09:10:31 +0100
committerStefan Liebler <stli@linux.ibm.com>2019-02-06 09:10:31 +0100
commit94eeeec04be8efae1a85d7c224e0026ee18ee6e7 (patch)
tree02f2a36f60bb2d87f9d151b9cadceb62545f8d15
parentbc79db3fd487daea36e7c130f943cfb9826a41b4 (diff)
downloadglibc-94eeeec04be8efae1a85d7c224e0026ee18ee6e7.tar.gz
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.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/s390/wmemcmp-vx.S3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4988b0c632..3de4ca1f10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2019-02-06 Stefan Liebler <stli@linux.ibm.com>
+ * sysdeps/s390/wmemcmp-vx.S: Add strong alias to
+ __wmemcmp and weak alias to wmemcmp.
+
+2019-02-06 Stefan Liebler <stli@linux.ibm.com>
+
[BZ #23403]
* nptl/allocatestack.c (allocate_stack): Align pointer pd for
TLS_TCB_AT_TP tls variant.
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