Skip to content

Commit af5b146

Browse files
committed
Use non-checking TLS relocation in aarch64 asm! sym test.
The checking variant ensures that the offset required is not larger than 12 bits - hence we wouldn't ever need the upper 12 bits.
1 parent 7807a69 commit af5b146

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/ui/asm/aarch64/sym.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ macro_rules! static_tls_addr {
5555
// Add the top 12 bits of the symbol's offset
5656
"add {out}, {out}, :tprel_hi12:{sym}",
5757
// And the bottom 12 bits
58-
"add {out}, {out}, :tprel_lo12:{sym}",
58+
"add {out}, {out}, :tprel_lo12_nc:{sym}",
5959
out = out(reg) result,
6060
sym = sym $s
6161
);

0 commit comments

Comments
 (0)