Skip to content

Commit 9b4f2b4

Browse files
committed
musl: avoid r0 as address register in s390x __tls_get_offset
https://www.openwall.com/lists/musl/2025/10/12/4 See also 7b92d5f...
1 parent 87c1894 commit 9b4f2b4

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
.global __tls_get_offset
22
.type __tls_get_offset,%function
33
__tls_get_offset:
4-
ear %r0, %a0
5-
sllg %r0, %r0, 32
6-
ear %r0, %a1
4+
ear %r3, %a0
5+
sllg %r3, %r3, 32
6+
ear %r3, %a1
77

88
la %r1, 0(%r2, %r12)
99

10-
lg %r3, 0(%r1)
11-
sllg %r4, %r3, 3
12-
lg %r5, 8(%r0)
10+
lg %r0, 0(%r1)
11+
sllg %r4, %r0, 3
12+
lg %r5, 8(%r3)
1313
lg %r2, 0(%r4, %r5)
1414
ag %r2, 8(%r1)
15-
sgr %r2, %r0
15+
sgr %r2, %r3
1616

1717
br %r14

0 commit comments

Comments
 (0)