Commit | Line | Data |
---|---|---|
f8745e1c EB |
1 | .text |
2 | .LLGETPC0: | |
3 | retl | |
4 | add %o7, %l7, %l7 | |
5 | .global foo | |
6 | .type foo, #function | |
7 | .proc 04 | |
8 | foo: | |
9 | save %sp, -104, %sp | |
10 | sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %l7 | |
11 | call .LLGETPC0 | |
12 | add %l7, %lo(_GLOBAL_OFFSET_TABLE_+4), %l7 | |
13 | sethi %hi(var), %g1 | |
14 | or %g1, %lo(var), %g1 | |
15 | ld [%l7+%g1], %g1 | |
16 | ld [%g1], %i0 | |
17 | ret | |
18 | restore |