ld/testsuite/ld-sh/tlstpoff2.s
raw| 1 | .section .tbss,"awT",@nobits |
| 2 | .global x |
| 3 | y: .space 4 |
| 4 | x: .space 4 |
| 5 | |
| 6 | .section barfn,"ax",@progbits |
| 7 | .align 1 |
| 8 | .type bar, @function |
| 9 | bar: |
| 10 | mova .L1,r0 |
| 11 | mov.l .L1,r12 |
| 12 | add r0,r12 |
| 13 | mov.l 1f,r0 |
| 14 | stc gbr,r1 |
| 15 | mov.l @(r0,r12),r0 |
| 16 | bra 2f |
| 17 | add r0,r1 |
| 18 | .align 2 |
| 19 | 1: .long x@GOTTPOFF |
| 20 | 2: |
| 21 | mov.l @r1,r0 |
| 22 | rts |
| 23 | mov.l @r15+,r12 |
| 24 | |
| 25 | .align 2 |
| 26 | .L1: .long _GLOBAL_OFFSET_TABLE_ |