[PATCH 04/11] s390: Fix argument register in linker TLS GD tests
Jens Remus
jremus@linux.ibm.com
Thu Nov 13 13:21:37 GMT 2025
In TLS General Dynamic (GD) model tests use argument register r2 to
pass the GOT offset to the tls_index structure to __tls get offset.
ld/testsuite/
* ld-s390/tlsbinpic_64.s: Use argument register r2 to pass GOT
offset to the tls_index structure in GD tests.
* ld-s390/tlsbin_64.dd: Adapt expected test output patterns to
test changes.
Signed-off-by: Jens Remus <jremus@linux.ibm.com>
---
ld/testsuite/ld-s390/tlsbin_64.dd | 2 +-
ld/testsuite/ld-s390/tlsbinpic_64.s | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ld/testsuite/ld-s390/tlsbin_64.dd b/ld/testsuite/ld-s390/tlsbin_64.dd
index 2ac61eeb7799..0d4dd863ad0f 100644
--- a/ld/testsuite/ld-s390/tlsbin_64.dd
+++ b/ld/testsuite/ld-s390/tlsbin_64.dd
@@ -77,7 +77,7 @@ Disassembly of section .text:
+[0-9a-f]+: eb 99 00 20 00 0d sllg %r9,%r9,32
+[0-9a-f]+: b2 4f 00 91 ear %r9,%a1
# GD -> IE because variable is not defined in executable
- +[0-9a-f]+: e3 c0 d0 00 00 04 lg %r12,0\(%r13\)
+ +[0-9a-f]+: e3 20 d0 00 00 04 lg %r2,0\(%r13\)
+[0-9a-f]+: e3 22 c0 00 00 04 lg %r2,0\(%r2,%r12\)
+[0-9a-f]+: 41 22 90 00 la %r2,0\(%r2,%r9\)
# GD -> IE because variable is not defined in executable where
diff --git a/ld/testsuite/ld-s390/tlsbinpic_64.s b/ld/testsuite/ld-s390/tlsbinpic_64.s
index 1d9255a063d7..483684a129d1 100644
--- a/ld/testsuite/ld-s390/tlsbinpic_64.s
+++ b/ld/testsuite/ld-s390/tlsbinpic_64.s
@@ -80,7 +80,7 @@ fn2:
ear %r9,%a1
/* GD -> IE because variable is not defined in executable */
- lg %r12,.LC2-.LT1(%r13)
+ lg %r2,.LC2-.LT1(%r13)
brasl %r14,__tls_get_offset@plt:tls_gdcall:sG1
la %r2,0(%r2,%r9)
--
2.48.1
More information about the Binutils
mailing list