[COMMITTED] S390: Fix introduction of __wcscpy and weak wcscpy symbols.

Message ID a8e76316-3644-d1de-87ad-eecfc78e3193@linux.ibm.com
State Committed
Headers

Commit Message

Stefan Liebler March 1, 2019, 3:31 p.m. UTC
  Hi,

The recent commit 81a14439417552324ec6ca71f65ddf8e7cdd51c7
has introduced __wcscpy, __GI___wcscpy and the weak alias wcscpy.
This patch also introduces those symbols if glibc is build
with CFLAGS="-march=z13" where the ifunc is omitted.

Bye,
Stefan

ChangeLog:

	* sysdeps/s390/wcscpy-vx.S: Add strong aliases to
	__wcscpy, __GI___wcscpy and weak alias to wcscpy.
  

Patch

commit cf473e4be0ce087a93db03fc4cd1a120dde4041a
Author: Stefan Liebler <stli@linux.ibm.com>
Date:   Thu Feb 28 12:18:02 2019 +0100

    S390: Fix introduction of __wcscpy and weak wcscpy symbols.
    
    The recent commit 81a14439417552324ec6ca71f65ddf8e7cdd51c7
    has introduced __wcscpy, __GI___wcscpy and the weak alias wcscpy.
    This patch also introduces those symbols if glibc is build
    with CFLAGS="-march=z13" where the ifunc is omitted.
    
    ChangeLog:
    
            * sysdeps/s390/wcscpy-vx.S: Add strong aliases to
            __wcscpy, __GI___wcscpy and weak alias to wcscpy.

diff --git a/sysdeps/s390/wcscpy-vx.S b/sysdeps/s390/wcscpy-vx.S
index e797fece6b..5fe110fd94 100644
--- a/sysdeps/s390/wcscpy-vx.S
+++ b/sysdeps/s390/wcscpy-vx.S
@@ -111,6 +111,10 @@  ENTRY(WCSCPY_Z13)
 END(WCSCPY_Z13)
 
 # if ! HAVE_WCSCPY_IFUNC
-strong_alias (WCSCPY_Z13, wcscpy)
+strong_alias (WCSCPY_Z13, __wcscpy)
+weak_alias (__wcscpy, wcscpy)
+#  if defined SHARED && IS_IN (libc)
+strong_alias (__wcscpy, __GI___wcscpy)
+#  endif
 # endif
 #endif