|
|
2be09a |
commit a4f3bc23461e3f9f6053e827715984ba0d2e589a
|
|
|
2be09a |
Author: Florian Weimer <fweimer@redhat.com>
|
|
|
2be09a |
Date: Wed Nov 10 15:21:37 2021 +0100
|
|
|
2be09a |
|
|
|
2be09a |
s390: Use long branches across object boundaries (jgh instead of jh)
|
|
|
2be09a |
|
|
|
2be09a |
Depending on the layout chosen by the linker, the 16-bit displacement
|
|
|
2be09a |
of the jh instruction is insufficient to reach the target label.
|
|
|
2be09a |
|
|
|
2be09a |
Analysis of the linker failure was carried out by Nick Clifton.
|
|
|
2be09a |
|
|
|
2be09a |
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
|
|
|
2be09a |
Reviewed-by: Stefan Liebler <stli@linux.ibm.com>
|
|
|
2be09a |
(cherry picked from commit 98966749f2b418825ff2ea496a0ee89fe63d2cc8)
|
|
|
2be09a |
|
|
|
2be09a |
diff --git a/sysdeps/s390/memmem-arch13.S b/sysdeps/s390/memmem-arch13.S
|
|
|
2be09a |
index c5c8d8c97efb3b9f..58df8cdb142a6b25 100644
|
|
|
2be09a |
--- a/sysdeps/s390/memmem-arch13.S
|
|
|
2be09a |
+++ b/sysdeps/s390/memmem-arch13.S
|
|
|
2be09a |
@@ -41,7 +41,7 @@ ENTRY(MEMMEM_ARCH13)
|
|
|
2be09a |
# error The arch13 variant of memmem needs the z13 variant of memmem!
|
|
|
2be09a |
# endif
|
|
|
2be09a |
clgfi %r5,9
|
|
|
2be09a |
- jh MEMMEM_Z13
|
|
|
2be09a |
+ jgh MEMMEM_Z13
|
|
|
2be09a |
|
|
|
2be09a |
aghik %r0,%r5,-1 /* vll needs highest index. */
|
|
|
2be09a |
bc 4,0(%r14) /* cc==1: return if needle-len == 0. */
|
|
|
2be09a |
diff --git a/sysdeps/s390/strstr-arch13.S b/sysdeps/s390/strstr-arch13.S
|
|
|
2be09a |
index c7183e627c9fa986..222a6de91abb3fc6 100644
|
|
|
2be09a |
--- a/sysdeps/s390/strstr-arch13.S
|
|
|
2be09a |
+++ b/sysdeps/s390/strstr-arch13.S
|
|
|
2be09a |
@@ -49,7 +49,7 @@ ENTRY(STRSTR_ARCH13)
|
|
|
2be09a |
# error The arch13 variant of strstr needs the z13 variant of strstr!
|
|
|
2be09a |
# endif
|
|
|
2be09a |
clgfi %r4,9
|
|
|
2be09a |
- jh STRSTR_Z13
|
|
|
2be09a |
+ jgh STRSTR_Z13
|
|
|
2be09a |
|
|
|
2be09a |
/* In case of a partial match, the vstrs instruction returns the index
|
|
|
2be09a |
of the partial match in a vector-register. Then we have to
|