diff options
Diffstat (limited to 'ld/testsuite/ld-aarch64/tlsle-symbol-offset.s')
-rw-r--r-- | ld/testsuite/ld-aarch64/tlsle-symbol-offset.s | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ld/testsuite/ld-aarch64/tlsle-symbol-offset.s b/ld/testsuite/ld-aarch64/tlsle-symbol-offset.s new file mode 100644 index 0000000..41088ef --- /dev/null +++ b/ld/testsuite/ld-aarch64/tlsle-symbol-offset.s @@ -0,0 +1,17 @@ + .global p + .global a + .section .tbss,"awT",%nobits +p: + .zero 4096 +a: + .zero 52 + + .text + +# Compute the address of an integer within structure a, padded +# by an array of size 48 + + mrs x0, tpidr_el0 + add x0, x0, #:tprel_hi12:a+48 + add x0, x0, #:tprel_lo12_nc:a+48 + ret |