Commit | Line | Data |
---|---|---|
1 | .sdata | |
2 | .global foo | |
3 | .globl bar | |
4 | foo: .byte 1 | |
5 | .byte 2 | |
6 | bar: .byte 3 | |
7 | .byte 4 | |
8 | ||
9 | .text | |
10 | .set mips16 | |
11 | .global f | |
12 | .ent f | |
13 | f: | |
14 | lb $2,%gprel(bar)($3) | |
15 | lb $2,%gprel(bar+1)($3) | |
16 | lb $2,%gprel(bar+0x1234)($3) | |
17 | .end f | |
18 | ||
19 | # align section end to 16-byte boundary for easier testing on multiple targets | |
20 | .p2align 4 |