about summary refs log tree commit diff
path: root/sysdeps/s390/memmem-arch13.S
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2021-11-10 15:21:37 +0100
committerFlorian Weimer <fweimer@redhat.com>2021-11-10 15:21:37 +0100
commit98966749f2b418825ff2ea496a0ee89fe63d2cc8 (patch)
treef8a23ac2bf80d5def2808d40ecd4254819d882ca /sysdeps/s390/memmem-arch13.S
parent0bd356df1afb0591470499813d4ebae9bcedd6a6 (diff)
downloadglibc-98966749f2b418825ff2ea496a0ee89fe63d2cc8.tar.gz
glibc-98966749f2b418825ff2ea496a0ee89fe63d2cc8.tar.xz
glibc-98966749f2b418825ff2ea496a0ee89fe63d2cc8.zip
s390: Use long branches across object boundaries (jgh instead of jh)
Depending on the layout chosen by the linker, the 16-bit displacement
of the jh instruction is insufficient to reach the target label.

Analysis of the linker failure was carried out by Nick Clifton.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Stefan Liebler <stli@linux.ibm.com>
Diffstat (limited to 'sysdeps/s390/memmem-arch13.S')
-rw-r--r--sysdeps/s390/memmem-arch13.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/s390/memmem-arch13.S b/sysdeps/s390/memmem-arch13.S
index c5c8d8c97e..58df8cdb14 100644
--- a/sysdeps/s390/memmem-arch13.S
+++ b/sysdeps/s390/memmem-arch13.S
@@ -41,7 +41,7 @@ ENTRY(MEMMEM_ARCH13)
 #  error The arch13 variant of memmem needs the z13 variant of memmem!
 # endif
 	clgfi	%r5,9
-	jh	MEMMEM_Z13
+	jgh	MEMMEM_Z13
 
 	aghik	%r0,%r5,-1		/* vll needs highest index.  */
 	bc	4,0(%r14)		/* cc==1: return if needle-len == 0.  */