daily update
[binutils.git] / ld / testsuite / ld-sparc / gotop64.s
blob8a8ff82b89a298ae00ea609b8eb0b641eb8f9a23
1 .data
2 .align 4096
3 .globl sym
4 sym: .word 0x12345678
6 .text
7 .align 4096
8 .LLGETPC0:
9 retl
10 add %o7, %l7, %l7
12 .globl foo
13 .type foo,#function
14 .proc 04
15 foo:
16 save %sp, -160, %sp
17 sethi %hi(_GLOBAL_OFFSET_TABLE_-4), %l7
18 call .LLGETPC0
19 add %l7, %lo(_GLOBAL_OFFSET_TABLE_+4), %l7
20 nop
21 sethi %gdop_hix22(sym), %l1
22 nop
23 xor %l1, %gdop_lox10(sym), %l1
24 nop
25 ldx [%l7 + %l1], %i0, %gdop(sym)
26 nop
27 ret
28 restore