Commit | Line | Data |
---|---|---|
dafa877d | 1 | .section .tdata,"awT",@progbits |
94a03f18 KK |
2 | .align 2 |
3 | .long foo | |
4 | .text | |
5 | .align 1 | |
6 | .global fn | |
7 | .type fn, @function | |
8 | fn: | |
9 | ! Main binary, no PIC | |
10 | mov.l r14,@-r15 | |
11 | mov r15,r14 | |
12 | ||
13 | stc gbr,r1 | |
14 | mov.l .L2,r0 | |
15 | add r1,r0 | |
16 | ! r0 now contains &foo | |
17 | ||
18 | mov r14,r15 | |
19 | rts | |
20 | mov.l @r15+,r14 | |
21 | .L3: | |
22 | .align 2 | |
23 | .L2: .long foo@TPOFF |