[COMMITTED] S390: Fix introduction of __wmemcmp and weak wmemcmp symbols.

Message ID 48356f3b-c3b6-8ba6-8e05-6fab6f562e82@linux.ibm.com
State New
Headers show
Series
  • [COMMITTED] S390: Fix introduction of __wmemcmp and weak wmemcmp symbols.
Related show

Commit Message

Stefan Liebler Feb. 6, 2019, 8:26 a.m.
Hi,

the recent commit 65f7767a914144ae303f7b9ae81865061793dcb9
has introduced __wmemcmp and the weak alias wmemcmp.
This commit also introduces those symbols if glibc is build
with CFLAGS="-march=z13" where the ifunc is omitted.

Bye,
Stefan

ChangeLog:

	* sysdeps/s390/wmemcmp-vx.S: Add strong alias to
	__wmemcmp and weak alias to wmemcmp.

Patch

commit 442b02c34265f4ac7b94b1558ada9f687a3eae75
Author: Stefan Liebler <stli@linux.ibm.com>
Date:   Tue Feb 5 13:47:31 2019 +0100

    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.

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