Home | History | Annotate | Download | only in ld-sparc
      1 	.data
      2 	.align	4096
      3 	.globl	sym
      4 sym:	.word	0x12345678
      5 
      6 local_sym:
      7 	.word	0xdeadbeef
      8 
      9 	.text
     10 	.align	4096
     11 .LLGETPC0:
     12 	retl
     13 	add	%o7, %l7, %l7
     14 
     15 	.globl	foo
     16 	.type	foo,#function
     17 	.proc	04
     18 foo:
     19 	save	%sp, -104, %sp
     20 	sethi	%hi(_GLOBAL_OFFSET_TABLE_-4), %l7
     21 	call	.LLGETPC0
     22 	add	%l7, %lo(_GLOBAL_OFFSET_TABLE_+4), %l7
     23 	nop
     24 	sethi	%gdop_hix22(sym), %l1
     25 	nop
     26 	xor	%l1, %gdop_lox10(sym), %l1
     27 	nop
     28 	ld	[%l7 + %l1], %i0, %gdop(sym)
     29 	nop
     30 	sethi	%gdop_hix22(local_sym), %l1
     31 	nop
     32 	xor	%l1, %gdop_lox10(local_sym), %l1
     33 	nop
     34 	ld	[%l7 + %l1], %i0, %gdop(local_sym)
     35 	nop
     36 	ret
     37 	restore
     38