|
|
bca718 |
From 6b9ad27fafd9c09aee186f2630b1c54348335040 Mon Sep 17 00:00:00 2001
|
|
|
bca718 |
From: Stefan Liebler <stli@linux.vnet.ibm.com>
|
|
|
bca718 |
Date: Thu, 8 Oct 2015 10:29:17 +0200
|
|
|
bca718 |
Subject: [PATCH 03/30] S390: Get rid of linknamespace failures for string
|
|
|
bca718 |
functions.
|
|
|
bca718 |
|
|
|
bca718 |
upstream-commit-id: 1d53248326dbd3c620a2bca16d35eff3019d900a
|
|
|
bca718 |
https://www.sourceware.org/ml/libc-alpha/2015-01/msg00310.html
|
|
|
bca718 |
|
|
|
bca718 |
This patch is needed to prepare for the optimized string function patchset.
|
|
|
bca718 |
This patch prefixes the ifunc-resolvers, the specific functions
|
|
|
bca718 |
and helper functions with '__' on s390-32/s390-64.
|
|
|
bca718 |
---
|
|
|
bca718 |
sysdeps/s390/s390-32/memcmp.S | 4 ++--
|
|
|
bca718 |
sysdeps/s390/s390-32/memcpy.S | 10 +++++-----
|
|
|
bca718 |
sysdeps/s390/s390-32/memset.S | 4 ++--
|
|
|
bca718 |
sysdeps/s390/s390-32/multiarch/ifunc-resolve.c | 16 ++++++++--------
|
|
|
bca718 |
sysdeps/s390/s390-32/multiarch/memcmp.S | 12 ++++++------
|
|
|
bca718 |
sysdeps/s390/s390-32/multiarch/memcpy.S | 14 +++++++-------
|
|
|
bca718 |
sysdeps/s390/s390-32/multiarch/memset.S | 18 +++++++++---------
|
|
|
bca718 |
sysdeps/s390/s390-64/memcmp.S | 4 ++--
|
|
|
bca718 |
sysdeps/s390/s390-64/memcpy.S | 10 +++++-----
|
|
|
bca718 |
sysdeps/s390/s390-64/memset.S | 4 ++--
|
|
|
bca718 |
sysdeps/s390/s390-64/multiarch/ifunc-resolve.c | 18 +++++++++---------
|
|
|
bca718 |
sysdeps/s390/s390-64/multiarch/memcmp.S | 12 ++++++------
|
|
|
bca718 |
sysdeps/s390/s390-64/multiarch/memcpy.S | 14 +++++++-------
|
|
|
bca718 |
sysdeps/s390/s390-64/multiarch/memset.S | 18 +++++++++---------
|
|
|
bca718 |
14 files changed, 79 insertions(+), 79 deletions(-)
|
|
|
bca718 |
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-32/memcmp.S b/sysdeps/s390/s390-32/memcmp.S
|
|
|
bca718 |
index 9ff84a3..b6eabe5 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-32/memcmp.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-32/memcmp.S
|
|
|
bca718 |
@@ -27,7 +27,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
.text
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-ENTRY(memcmp_g5)
|
|
|
bca718 |
+ENTRY(__memcmp_g5)
|
|
|
bca718 |
#else
|
|
|
bca718 |
ENTRY(memcmp)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
@@ -58,7 +58,7 @@ ENTRY(memcmp)
|
|
|
bca718 |
.L_G5_17:
|
|
|
bca718 |
clc 0(1,%r3),0(%r2)
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-END(memcmp_g5)
|
|
|
bca718 |
+END(__memcmp_g5)
|
|
|
bca718 |
#else
|
|
|
bca718 |
END(memcmp)
|
|
|
bca718 |
libc_hidden_builtin_def (memcmp)
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-32/memcpy.S b/sysdeps/s390/s390-32/memcpy.S
|
|
|
bca718 |
index 90cc4cb..a3b1ace 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-32/memcpy.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-32/memcpy.S
|
|
|
bca718 |
@@ -26,7 +26,7 @@
|
|
|
bca718 |
%r4 = number of bytes to copy. */
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-ENTRY(memcpy_g5)
|
|
|
bca718 |
+ENTRY(__memcpy_g5)
|
|
|
bca718 |
#else
|
|
|
bca718 |
ENTRY(memcpy)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
@@ -49,7 +49,7 @@ ENTRY(memcpy)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_G5_13:
|
|
|
bca718 |
chi %r5,4096 # Switch to mvcle for copies >1MB
|
|
|
bca718 |
- jh memcpy_mvcle
|
|
|
bca718 |
+ jh __memcpy_mvcle
|
|
|
bca718 |
.L_G5_12:
|
|
|
bca718 |
mvc 0(256,%r1),0(%r3)
|
|
|
bca718 |
la %r1,256(%r1)
|
|
|
bca718 |
@@ -60,13 +60,13 @@ ENTRY(memcpy)
|
|
|
bca718 |
.L_G5_17:
|
|
|
bca718 |
mvc 0(1,%r1),0(%r3)
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-END(memcpy_g5)
|
|
|
bca718 |
+END(__memcpy_g5)
|
|
|
bca718 |
#else
|
|
|
bca718 |
END(memcpy)
|
|
|
bca718 |
libc_hidden_builtin_def (memcpy)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memcpy_mvcle)
|
|
|
bca718 |
+ENTRY(__memcpy_mvcle)
|
|
|
bca718 |
# Using as standalone function will result in unexpected
|
|
|
bca718 |
# results since the length field is incremented by 1 in order to
|
|
|
bca718 |
# compensate the changes already done in the functions above.
|
|
|
bca718 |
@@ -79,4 +79,4 @@ ENTRY(memcpy_mvcle)
|
|
|
bca718 |
jo .L_MVCLE_1
|
|
|
bca718 |
lr %r2,%r1 # return destination address
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
-END(memcpy_mvcle)
|
|
|
bca718 |
+END(__memcpy_mvcle)
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-32/memset.S b/sysdeps/s390/s390-32/memset.S
|
|
|
bca718 |
index 31a70f0..a73dc6c 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-32/memset.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-32/memset.S
|
|
|
bca718 |
@@ -28,7 +28,7 @@
|
|
|
bca718 |
.text
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-ENTRY(memset_g5)
|
|
|
bca718 |
+ENTRY(__memset_g5)
|
|
|
bca718 |
#else
|
|
|
bca718 |
ENTRY(memset)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
@@ -58,7 +58,7 @@ ENTRY(memset)
|
|
|
bca718 |
.L_G5_20:
|
|
|
bca718 |
mvc 1(1,%r1),0(%r1)
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-END(memset_g5)
|
|
|
bca718 |
+END(__memset_g5)
|
|
|
bca718 |
#else
|
|
|
bca718 |
END(memset)
|
|
|
bca718 |
libc_hidden_builtin_def (memset)
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c b/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
|
|
|
bca718 |
index 42ca8da..522c63c 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
|
|
|
bca718 |
@@ -28,17 +28,17 @@
|
|
|
bca718 |
#define IFUNC_RESOLVE(FUNC) \
|
|
|
bca718 |
asm (".globl " #FUNC "\n\t" \
|
|
|
bca718 |
".type " #FUNC ",@gnu_indirect_function\n\t" \
|
|
|
bca718 |
- ".set " #FUNC ",resolve_" #FUNC "\n\t" \
|
|
|
bca718 |
+ ".set " #FUNC ",__resolve_" #FUNC "\n\t" \
|
|
|
bca718 |
".globl __GI_" #FUNC "\n\t" \
|
|
|
bca718 |
".set __GI_" #FUNC "," #FUNC "\n"); \
|
|
|
bca718 |
\
|
|
|
bca718 |
/* Make the declarations of the optimized functions hidden in order
|
|
|
bca718 |
to prevent GOT slots being generated for them. */ \
|
|
|
bca718 |
- extern void *FUNC##_z196 attribute_hidden; \
|
|
|
bca718 |
- extern void *FUNC##_z10 attribute_hidden; \
|
|
|
bca718 |
- extern void *FUNC##_g5 attribute_hidden; \
|
|
|
bca718 |
+ extern void *__##FUNC##_z196 attribute_hidden; \
|
|
|
bca718 |
+ extern void *__##FUNC##_z10 attribute_hidden; \
|
|
|
bca718 |
+ extern void *__##FUNC##_g5 attribute_hidden; \
|
|
|
bca718 |
\
|
|
|
bca718 |
- void *resolve_##FUNC (unsigned long int dl_hwcap) \
|
|
|
bca718 |
+ void *__resolve_##FUNC (unsigned long int dl_hwcap) \
|
|
|
bca718 |
{ \
|
|
|
bca718 |
if ((dl_hwcap & HWCAP_S390_STFLE) \
|
|
|
bca718 |
&& (dl_hwcap & HWCAP_S390_ZARCH) \
|
|
|
bca718 |
@@ -53,11 +53,11 @@
|
|
|
bca718 |
: : "cc"); \
|
|
|
bca718 |
\
|
|
|
bca718 |
if ((stfle_bits & (1ULL << (63 - STFLE_BITS_Z196))) != 0) \
|
|
|
bca718 |
- return &FUNC##_z196; \
|
|
|
bca718 |
+ return &__##FUNC##_z196; \
|
|
|
bca718 |
else if ((stfle_bits & (1ULL << (63 - STFLE_BITS_Z10))) != 0) \
|
|
|
bca718 |
- return &FUNC##_z10; \
|
|
|
bca718 |
+ return &__##FUNC##_z10; \
|
|
|
bca718 |
} \
|
|
|
bca718 |
- return &FUNC##_g5; \
|
|
|
bca718 |
+ return &__##FUNC##_g5; \
|
|
|
bca718 |
}
|
|
|
bca718 |
|
|
|
bca718 |
IFUNC_RESOLVE(memset)
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-32/multiarch/memcmp.S b/sysdeps/s390/s390-32/multiarch/memcmp.S
|
|
|
bca718 |
index 9ca8891..c654d19 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-32/multiarch/memcmp.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-32/multiarch/memcmp.S
|
|
|
bca718 |
@@ -29,7 +29,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
#ifndef NOT_IN_libc
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memcmp_z196)
|
|
|
bca718 |
+ENTRY(__memcmp_z196)
|
|
|
bca718 |
.machine "z196"
|
|
|
bca718 |
.machinemode "zarch_nohighgprs"
|
|
|
bca718 |
ltr %r4,%r4
|
|
|
bca718 |
@@ -61,9 +61,9 @@ ENTRY(memcmp_z196)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z196_14:
|
|
|
bca718 |
clc 0(1,%r3),0(%r2)
|
|
|
bca718 |
-END(memcmp_z196)
|
|
|
bca718 |
+END(__memcmp_z196)
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memcmp_z10)
|
|
|
bca718 |
+ENTRY(__memcmp_z10)
|
|
|
bca718 |
.machine "z10"
|
|
|
bca718 |
.machinemode "zarch_nohighgprs"
|
|
|
bca718 |
ltr %r4,%r4
|
|
|
bca718 |
@@ -90,7 +90,7 @@ ENTRY(memcmp_z10)
|
|
|
bca718 |
j .L_Z10_3
|
|
|
bca718 |
.L_Z10_15:
|
|
|
bca718 |
clc 0(1,%r3),0(%r2)
|
|
|
bca718 |
-END(memcmp_z10)
|
|
|
bca718 |
+END(__memcmp_z10)
|
|
|
bca718 |
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
@@ -98,7 +98,7 @@ END(memcmp_z10)
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef NOT_IN_libc
|
|
|
bca718 |
.globl memcmp
|
|
|
bca718 |
-.set memcmp,memcmp_g5
|
|
|
bca718 |
+.set memcmp,__memcmp_g5
|
|
|
bca718 |
.weak bcmp
|
|
|
bca718 |
-.set bcmp,memcmp_g5
|
|
|
bca718 |
+.set bcmp,__memcmp_g5
|
|
|
bca718 |
#endif
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-32/multiarch/memcpy.S b/sysdeps/s390/s390-32/multiarch/memcpy.S
|
|
|
bca718 |
index 7b85602..5c2113f 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-32/multiarch/memcpy.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-32/multiarch/memcpy.S
|
|
|
bca718 |
@@ -29,7 +29,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
#if defined SHARED && !defined NOT_IN_libc
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memcpy_z196)
|
|
|
bca718 |
+ENTRY(__memcpy_z196)
|
|
|
bca718 |
.machine "z196"
|
|
|
bca718 |
.machinemode "zarch_nohighgprs"
|
|
|
bca718 |
llgfr %r4,%r4
|
|
|
bca718 |
@@ -46,7 +46,7 @@ ENTRY(memcpy_z196)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z196_5:
|
|
|
bca718 |
cgfi %r5,262144 # Switch to mvcle for copies >64MB
|
|
|
bca718 |
- jh memcpy_mvcle
|
|
|
bca718 |
+ jh __memcpy_mvcle
|
|
|
bca718 |
.L_Z196_2:
|
|
|
bca718 |
pfd 1,768(%r3)
|
|
|
bca718 |
pfd 2,768(%r1)
|
|
|
bca718 |
@@ -58,9 +58,9 @@ ENTRY(memcpy_z196)
|
|
|
bca718 |
j .L_Z196_3
|
|
|
bca718 |
.L_Z196_14:
|
|
|
bca718 |
mvc 0(1,%r1),0(%r3)
|
|
|
bca718 |
-END(memcpy_z196)
|
|
|
bca718 |
+END(__memcpy_z196)
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memcpy_z10)
|
|
|
bca718 |
+ENTRY(__memcpy_z10)
|
|
|
bca718 |
.machine "z10"
|
|
|
bca718 |
.machinemode "zarch_nohighgprs"
|
|
|
bca718 |
llgfr %r4,%r4
|
|
|
bca718 |
@@ -75,7 +75,7 @@ ENTRY(memcpy_z10)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z10_13:
|
|
|
bca718 |
cgfi %r5,65535 # Switch to mvcle for copies >16MB
|
|
|
bca718 |
- jh memcpy_mvcle
|
|
|
bca718 |
+ jh __memcpy_mvcle
|
|
|
bca718 |
.L_Z10_12:
|
|
|
bca718 |
pfd 1,768(%r3)
|
|
|
bca718 |
pfd 2,768(%r1)
|
|
|
bca718 |
@@ -86,7 +86,7 @@ ENTRY(memcpy_z10)
|
|
|
bca718 |
j .L_Z10_3
|
|
|
bca718 |
.L_Z10_15:
|
|
|
bca718 |
mvc 0(1,%r1),0(%r3)
|
|
|
bca718 |
-END(memcpy_z10)
|
|
|
bca718 |
+END(__memcpy_z10)
|
|
|
bca718 |
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
@@ -94,5 +94,5 @@ END(memcpy_z10)
|
|
|
bca718 |
|
|
|
bca718 |
#if !defined SHARED || defined NOT_IN_libc
|
|
|
bca718 |
.globl memcpy
|
|
|
bca718 |
-.set memcpy,memcpy_g5
|
|
|
bca718 |
+.set memcpy,__memcpy_g5
|
|
|
bca718 |
#endif
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-32/multiarch/memset.S b/sysdeps/s390/s390-32/multiarch/memset.S
|
|
|
bca718 |
index ba43d67..54aa028 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-32/multiarch/memset.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-32/multiarch/memset.S
|
|
|
bca718 |
@@ -29,7 +29,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
#ifndef NOT_IN_libc
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memset_z196)
|
|
|
bca718 |
+ENTRY(__memset_z196)
|
|
|
bca718 |
.machine "z196"
|
|
|
bca718 |
.machinemode "zarch_nohighgprs"
|
|
|
bca718 |
llgfr %r4,%r4
|
|
|
bca718 |
@@ -49,7 +49,7 @@ ENTRY(memset_z196)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z196_1:
|
|
|
bca718 |
cgfi %r5,1048576
|
|
|
bca718 |
- jh memset_mvcle # Switch to mvcle for >256MB
|
|
|
bca718 |
+ jh __memset_mvcle # Switch to mvcle for >256MB
|
|
|
bca718 |
.L_Z196_2:
|
|
|
bca718 |
pfd 2,1024(%r1)
|
|
|
bca718 |
mvc 1(256,%r1),0(%r1)
|
|
|
bca718 |
@@ -59,9 +59,9 @@ ENTRY(memset_z196)
|
|
|
bca718 |
j .L_Z196_3
|
|
|
bca718 |
.L_Z196_17:
|
|
|
bca718 |
mvc 1(1,%r1),0(%r1)
|
|
|
bca718 |
-END(memset_z196)
|
|
|
bca718 |
+END(__memset_z196)
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memset_z10)
|
|
|
bca718 |
+ENTRY(__memset_z10)
|
|
|
bca718 |
.machine "z10"
|
|
|
bca718 |
.machinemode "zarch_nohighgprs"
|
|
|
bca718 |
llgfr %r4,%r4
|
|
|
bca718 |
@@ -78,7 +78,7 @@ ENTRY(memset_z10)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z10_15:
|
|
|
bca718 |
cgfi %r5,163840 # Switch to mvcle for >40MB
|
|
|
bca718 |
- jh memset_mvcle
|
|
|
bca718 |
+ jh __memset_mvcle
|
|
|
bca718 |
.L_Z10_14:
|
|
|
bca718 |
pfd 2,1024(%r1)
|
|
|
bca718 |
mvc 1(256,%r1),0(%r1)
|
|
|
bca718 |
@@ -87,9 +87,9 @@ ENTRY(memset_z10)
|
|
|
bca718 |
j .L_Z10_3
|
|
|
bca718 |
.L_Z10_18:
|
|
|
bca718 |
mvc 1(1,%r1),0(%r1)
|
|
|
bca718 |
-END(memset_z10)
|
|
|
bca718 |
+END(__memset_z10)
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memset_mvcle)
|
|
|
bca718 |
+ENTRY(__memset_mvcle)
|
|
|
bca718 |
ahi %r4,2 # take back the change done by the caller
|
|
|
bca718 |
lr %r0,%r2 # save source address
|
|
|
bca718 |
lr %r1,%r3 # move pad byte to R1
|
|
|
bca718 |
@@ -101,7 +101,7 @@ ENTRY(memset_mvcle)
|
|
|
bca718 |
lr %r2,%r0 # return value is source address
|
|
|
bca718 |
.L1:
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
-END(memset_mvcle)
|
|
|
bca718 |
+END(__memset_mvcle)
|
|
|
bca718 |
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
@@ -109,5 +109,5 @@ END(memset_mvcle)
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef NOT_IN_libc
|
|
|
bca718 |
.globl memset
|
|
|
bca718 |
-.set memset,memset_g5
|
|
|
bca718 |
+.set memset,__memset_g5
|
|
|
bca718 |
#endif
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-64/memcmp.S b/sysdeps/s390/s390-64/memcmp.S
|
|
|
bca718 |
index 1b43440..eb5370f 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-64/memcmp.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-64/memcmp.S
|
|
|
bca718 |
@@ -27,7 +27,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
.text
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-ENTRY(memcmp_z900)
|
|
|
bca718 |
+ENTRY(__memcmp_z900)
|
|
|
bca718 |
#else
|
|
|
bca718 |
ENTRY(memcmp)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
@@ -56,7 +56,7 @@ ENTRY(memcmp)
|
|
|
bca718 |
.L_Z900_15:
|
|
|
bca718 |
clc 0(1,%r3),0(%r2)
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-END(memcmp_z900)
|
|
|
bca718 |
+END(__memcmp_z900)
|
|
|
bca718 |
#else
|
|
|
bca718 |
END(memcmp)
|
|
|
bca718 |
libc_hidden_builtin_def (memcmp)
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-64/memcpy.S b/sysdeps/s390/s390-64/memcpy.S
|
|
|
bca718 |
index bae8836..61fca0b 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-64/memcpy.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-64/memcpy.S
|
|
|
bca718 |
@@ -29,7 +29,7 @@
|
|
|
bca718 |
.text
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-ENTRY(memcpy_z900)
|
|
|
bca718 |
+ENTRY(__memcpy_z900)
|
|
|
bca718 |
#else
|
|
|
bca718 |
ENTRY(memcpy)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
@@ -48,7 +48,7 @@ ENTRY(memcpy)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z900_13:
|
|
|
bca718 |
chi %r5,4096 # Switch to mvcle for copies >1MB
|
|
|
bca718 |
- jh memcpy_mvcle
|
|
|
bca718 |
+ jh __memcpy_mvcle
|
|
|
bca718 |
.L_Z900_12:
|
|
|
bca718 |
mvc 0(256,%r1),0(%r3)
|
|
|
bca718 |
la %r1,256(%r1)
|
|
|
bca718 |
@@ -59,13 +59,13 @@ ENTRY(memcpy)
|
|
|
bca718 |
mvc 0(1,%r1),0(%r3)
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-END(memcpy_z900)
|
|
|
bca718 |
+END(__memcpy_z900)
|
|
|
bca718 |
#else
|
|
|
bca718 |
END(memcpy)
|
|
|
bca718 |
libc_hidden_builtin_def (memcpy)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memcpy_mvcle)
|
|
|
bca718 |
+ENTRY(__memcpy_mvcle)
|
|
|
bca718 |
# Using as standalone function will result in unexpected
|
|
|
bca718 |
# results since the length field is incremented by 1 in order to
|
|
|
bca718 |
# compensate the changes already done in the functions above.
|
|
|
bca718 |
@@ -78,4 +78,4 @@ ENTRY(memcpy_mvcle)
|
|
|
bca718 |
jo .L_MVCLE_1
|
|
|
bca718 |
lgr %r2,%r1 # return destination address
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
-END(memcpy_mvcle)
|
|
|
bca718 |
+END(__memcpy_mvcle)
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-64/memset.S b/sysdeps/s390/s390-64/memset.S
|
|
|
bca718 |
index 4edfb4e..8185e94 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-64/memset.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-64/memset.S
|
|
|
bca718 |
@@ -29,7 +29,7 @@
|
|
|
bca718 |
.text
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-ENTRY(memset_z900)
|
|
|
bca718 |
+ENTRY(__memset_z900)
|
|
|
bca718 |
#else
|
|
|
bca718 |
ENTRY(memset)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
@@ -57,7 +57,7 @@ ENTRY(memset)
|
|
|
bca718 |
.L_Z900_18:
|
|
|
bca718 |
mvc 1(1,%r1),0(%r1)
|
|
|
bca718 |
#ifdef USE_MULTIARCH
|
|
|
bca718 |
-END(memset_z900)
|
|
|
bca718 |
+END(__memset_z900)
|
|
|
bca718 |
#else
|
|
|
bca718 |
END(memset)
|
|
|
bca718 |
libc_hidden_builtin_def (memset)
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c b/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
|
|
|
bca718 |
index 8db2c38..b6be970 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-64/multiarch/ifunc-resolve.c
|
|
|
bca718 |
@@ -28,17 +28,17 @@
|
|
|
bca718 |
#define IFUNC_RESOLVE(FUNC) \
|
|
|
bca718 |
asm (".globl " #FUNC "\n\t" \
|
|
|
bca718 |
".type " #FUNC ",@gnu_indirect_function\n\t" \
|
|
|
bca718 |
- ".set " #FUNC ",resolve_" #FUNC "\n\t" \
|
|
|
bca718 |
+ ".set " #FUNC ",__resolve_" #FUNC "\n\t" \
|
|
|
bca718 |
".globl __GI_" #FUNC "\n\t" \
|
|
|
bca718 |
".set __GI_" #FUNC "," #FUNC "\n"); \
|
|
|
bca718 |
\
|
|
|
bca718 |
/* Make the declarations of the optimized functions hidden in order
|
|
|
bca718 |
to prevent GOT slots being generated for them. */ \
|
|
|
bca718 |
- extern void *FUNC##_z196 attribute_hidden; \
|
|
|
bca718 |
- extern void *FUNC##_z10 attribute_hidden; \
|
|
|
bca718 |
- extern void *FUNC##_z900 attribute_hidden; \
|
|
|
bca718 |
+ extern void *__##FUNC##_z196 attribute_hidden; \
|
|
|
bca718 |
+ extern void *__##FUNC##_z10 attribute_hidden; \
|
|
|
bca718 |
+ extern void *__##FUNC##_z900 attribute_hidden; \
|
|
|
bca718 |
\
|
|
|
bca718 |
- void *resolve_##FUNC (unsigned long int dl_hwcap) \
|
|
|
bca718 |
+ void *__resolve_##FUNC (unsigned long int dl_hwcap) \
|
|
|
bca718 |
{ \
|
|
|
bca718 |
if (dl_hwcap & HWCAP_S390_STFLE) \
|
|
|
bca718 |
{ \
|
|
|
bca718 |
@@ -54,14 +54,14 @@
|
|
|
bca718 |
: : "cc"); \
|
|
|
bca718 |
\
|
|
|
bca718 |
if ((stfle_bits & (1UL << (63 - STFLE_BITS_Z196))) != 0) \
|
|
|
bca718 |
- return &FUNC##_z196; \
|
|
|
bca718 |
+ return &__##FUNC##_z196; \
|
|
|
bca718 |
else if ((stfle_bits & (1UL << (63 - STFLE_BITS_Z10))) != 0) \
|
|
|
bca718 |
- return &FUNC##_z10; \
|
|
|
bca718 |
+ return &__##FUNC##_z10; \
|
|
|
bca718 |
else \
|
|
|
bca718 |
- return &FUNC##_z900; \
|
|
|
bca718 |
+ return &__##FUNC##_z900; \
|
|
|
bca718 |
} \
|
|
|
bca718 |
else \
|
|
|
bca718 |
- return &FUNC##_z900; \
|
|
|
bca718 |
+ return &__##FUNC##_z900; \
|
|
|
bca718 |
}
|
|
|
bca718 |
|
|
|
bca718 |
IFUNC_RESOLVE(memset)
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-64/multiarch/memcmp.S b/sysdeps/s390/s390-64/multiarch/memcmp.S
|
|
|
bca718 |
index f40a3c1..9a8cba8 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-64/multiarch/memcmp.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-64/multiarch/memcmp.S
|
|
|
bca718 |
@@ -29,7 +29,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
#ifndef NOT_IN_libc
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memcmp_z196)
|
|
|
bca718 |
+ENTRY(__memcmp_z196)
|
|
|
bca718 |
.machine "z196"
|
|
|
bca718 |
ltgr %r4,%r4
|
|
|
bca718 |
je .L_Z196_4
|
|
|
bca718 |
@@ -60,9 +60,9 @@ ENTRY(memcmp_z196)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z196_14:
|
|
|
bca718 |
clc 0(1,%r3),0(%r2)
|
|
|
bca718 |
-END(memcmp_z196)
|
|
|
bca718 |
+END(__memcmp_z196)
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memcmp_z10)
|
|
|
bca718 |
+ENTRY(__memcmp_z10)
|
|
|
bca718 |
.machine "z10"
|
|
|
bca718 |
ltgr %r4,%r4
|
|
|
bca718 |
je .L_Z10_4
|
|
|
bca718 |
@@ -87,7 +87,7 @@ ENTRY(memcmp_z10)
|
|
|
bca718 |
j .L_Z10_3
|
|
|
bca718 |
.L_Z10_15:
|
|
|
bca718 |
clc 0(1,%r3),0(%r2)
|
|
|
bca718 |
-END(memcmp_z10)
|
|
|
bca718 |
+END(__memcmp_z10)
|
|
|
bca718 |
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
@@ -95,7 +95,7 @@ END(memcmp_z10)
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef NOT_IN_libc
|
|
|
bca718 |
.globl memcmp
|
|
|
bca718 |
-.set memcmp,memcmp_z900
|
|
|
bca718 |
+.set memcmp,__memcmp_z900
|
|
|
bca718 |
.weak bcmp
|
|
|
bca718 |
-.set bcmp,memcmp_z900
|
|
|
bca718 |
+.set bcmp,__memcmp_z900
|
|
|
bca718 |
#endif
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-64/multiarch/memcpy.S b/sysdeps/s390/s390-64/multiarch/memcpy.S
|
|
|
bca718 |
index b00ffc1..525588f 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-64/multiarch/memcpy.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-64/multiarch/memcpy.S
|
|
|
bca718 |
@@ -29,7 +29,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
#if defined SHARED && !defined NOT_IN_libc
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memcpy_z196)
|
|
|
bca718 |
+ENTRY(__memcpy_z196)
|
|
|
bca718 |
.machine "z196"
|
|
|
bca718 |
ltgr %r4,%r4
|
|
|
bca718 |
je .L_Z196_4
|
|
|
bca718 |
@@ -44,7 +44,7 @@ ENTRY(memcpy_z196)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z196_5:
|
|
|
bca718 |
cgfi %r5,262144 # Switch to mvcle for copies >64MB
|
|
|
bca718 |
- jh memcpy_mvcle
|
|
|
bca718 |
+ jh __memcpy_mvcle
|
|
|
bca718 |
.L_Z196_2:
|
|
|
bca718 |
pfd 1,768(%r3)
|
|
|
bca718 |
pfd 2,768(%r1)
|
|
|
bca718 |
@@ -56,9 +56,9 @@ ENTRY(memcpy_z196)
|
|
|
bca718 |
j .L_Z196_3
|
|
|
bca718 |
.L_Z196_14:
|
|
|
bca718 |
mvc 0(1,%r1),0(%r3)
|
|
|
bca718 |
-END(memcpy_z196)
|
|
|
bca718 |
+END(__memcpy_z196)
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memcpy_z10)
|
|
|
bca718 |
+ENTRY(__memcpy_z10)
|
|
|
bca718 |
.machine "z10"
|
|
|
bca718 |
cgije %r4,0,.L_Z10_4
|
|
|
bca718 |
aghi %r4,-1
|
|
|
bca718 |
@@ -71,7 +71,7 @@ ENTRY(memcpy_z10)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z10_13:
|
|
|
bca718 |
cgfi %r5,65535 # Switch to mvcle for copies >16MB
|
|
|
bca718 |
- jh memcpy_mvcle
|
|
|
bca718 |
+ jh __memcpy_mvcle
|
|
|
bca718 |
.L_Z10_12:
|
|
|
bca718 |
pfd 1,768(%r3)
|
|
|
bca718 |
pfd 2,768(%r1)
|
|
|
bca718 |
@@ -82,7 +82,7 @@ ENTRY(memcpy_z10)
|
|
|
bca718 |
j .L_Z10_3
|
|
|
bca718 |
.L_Z10_15:
|
|
|
bca718 |
mvc 0(1,%r1),0(%r3)
|
|
|
bca718 |
-END(memcpy_z10)
|
|
|
bca718 |
+END(__memcpy_z10)
|
|
|
bca718 |
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
@@ -90,5 +90,5 @@ END(memcpy_z10)
|
|
|
bca718 |
|
|
|
bca718 |
#if !defined SHARED || defined NOT_IN_libc
|
|
|
bca718 |
.globl memcpy
|
|
|
bca718 |
-.set memcpy,memcpy_z900
|
|
|
bca718 |
+.set memcpy,__memcpy_z900
|
|
|
bca718 |
#endif
|
|
|
bca718 |
diff --git a/sysdeps/s390/s390-64/multiarch/memset.S b/sysdeps/s390/s390-64/multiarch/memset.S
|
|
|
bca718 |
index 1f9064d..8dbb3cb 100644
|
|
|
bca718 |
--- a/sysdeps/s390/s390-64/multiarch/memset.S
|
|
|
bca718 |
+++ b/sysdeps/s390/s390-64/multiarch/memset.S
|
|
|
bca718 |
@@ -29,7 +29,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
#ifndef NOT_IN_libc
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memset_z196)
|
|
|
bca718 |
+ENTRY(__memset_z196)
|
|
|
bca718 |
.machine "z196"
|
|
|
bca718 |
ltgr %r4,%r4
|
|
|
bca718 |
je .L_Z196_4
|
|
|
bca718 |
@@ -47,7 +47,7 @@ ENTRY(memset_z196)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z196_1:
|
|
|
bca718 |
cgfi %r5,1048576
|
|
|
bca718 |
- jh memset_mvcle # Switch to mvcle for >256MB
|
|
|
bca718 |
+ jh __memset_mvcle # Switch to mvcle for >256MB
|
|
|
bca718 |
.L_Z196_2:
|
|
|
bca718 |
pfd 2,1024(%r1)
|
|
|
bca718 |
mvc 1(256,%r1),0(%r1)
|
|
|
bca718 |
@@ -57,9 +57,9 @@ ENTRY(memset_z196)
|
|
|
bca718 |
j .L_Z196_3
|
|
|
bca718 |
.L_Z196_17:
|
|
|
bca718 |
mvc 1(1,%r1),0(%r1)
|
|
|
bca718 |
-END(memset_z196)
|
|
|
bca718 |
+END(__memset_z196)
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memset_z10)
|
|
|
bca718 |
+ENTRY(__memset_z10)
|
|
|
bca718 |
.machine "z10"
|
|
|
bca718 |
cgije %r4,0,.L_Z10_4
|
|
|
bca718 |
stc %r3,0(%r2)
|
|
|
bca718 |
@@ -74,7 +74,7 @@ ENTRY(memset_z10)
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
.L_Z10_15:
|
|
|
bca718 |
cgfi %r5,163840 # Switch to mvcle for >40MB
|
|
|
bca718 |
- jh memset_mvcle
|
|
|
bca718 |
+ jh __memset_mvcle
|
|
|
bca718 |
.L_Z10_14:
|
|
|
bca718 |
pfd 2,1024(%r1)
|
|
|
bca718 |
mvc 1(256,%r1),0(%r1)
|
|
|
bca718 |
@@ -83,9 +83,9 @@ ENTRY(memset_z10)
|
|
|
bca718 |
j .L_Z10_3
|
|
|
bca718 |
.L_Z10_18:
|
|
|
bca718 |
mvc 1(1,%r1),0(%r1)
|
|
|
bca718 |
-END(memset_z10)
|
|
|
bca718 |
+END(__memset_z10)
|
|
|
bca718 |
|
|
|
bca718 |
-ENTRY(memset_mvcle)
|
|
|
bca718 |
+ENTRY(__memset_mvcle)
|
|
|
bca718 |
aghi %r4,2 # take back the change done by the caller
|
|
|
bca718 |
lgr %r0,%r2 # save source address
|
|
|
bca718 |
lgr %r1,%r3 # move pad byte to R1
|
|
|
bca718 |
@@ -97,7 +97,7 @@ ENTRY(memset_mvcle)
|
|
|
bca718 |
lgr %r2,%r0 # return value is source address
|
|
|
bca718 |
.L1:
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
-END(memset_mvcle)
|
|
|
bca718 |
+END(__memset_mvcle)
|
|
|
bca718 |
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
@@ -105,5 +105,5 @@ END(memset_mvcle)
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef NOT_IN_libc
|
|
|
bca718 |
.globl memset
|
|
|
bca718 |
-.set memset,memset_z900
|
|
|
bca718 |
+.set memset,__memset_z900
|
|
|
bca718 |
#endif
|
|
|
bca718 |
--
|
|
|
bca718 |
2.3.0
|
|
|
bca718 |
|