Commit | Line | Data |
---|---|---|
b125bd17 CZ |
1 | ;;; TLS tests: check tpoff addendum and resolving local TLS symbols. |
2 | ||
3 | .cpu HS | |
4 | .global a | |
5 | .section .tbss,"awT",@nobits | |
6 | .align 4 | |
7 | .type a, @object | |
8 | .size a, 60 | |
9 | a: | |
10 | .zero 60 | |
11 | ||
12 | .type local_tls_var, @object | |
13 | .size local_tls_var, 4 | |
14 | local_tls_var: | |
15 | .zero 4 | |
16 | ||
17 | ||
18 | .section .text | |
19 | .align 4 | |
20 | foo: | |
21 | ;;; Test if the tpoff addendum is correctly generated. | |
22 | add r2,r25,@a@tpoff+48 | |
23 | ;;; Test if local TLS symbol is correctly resolved. | |
24 | add r0,r0,@local_tls_var@dtpoff@.tbss |