Home | History | Annotate | Download | only in ld-powerpc
      1 	.section ".tbss","awT",@nobits
      2 	.global _start,gd0,ld0,ld1,ld2,ie0,le0,le1
      3 	.align 3
      4 gd0:	.space 8
      5 ld0:	.space 8
      6 ld1:	.space 8
      7 ld2:	.space 8
      8 ie0:	.space 8
      9 le0:	.space 8
     10 le1:	.space 8
     11 
     12 	.section ".tdata","awT",@progbits
     13 	.align 3
     14 gd4:	.quad 0x123456789abcdef0
     15 ld4:	.quad 0x23456789abcdef01
     16 ld5:	.quad 0x3456789abcdef012
     17 ld6:	.quad 0x456789abcdef0123
     18 ie4:	.quad 0x56789abcdef01234
     19 le4:	.quad 0x6789abcdef012345
     20 le5:	.quad 0x789abcdef0123456
     21 
     22 	.section ".opd","aw",@progbits
     23 	.p2align 3
     24 _start:
     25 	.quad	.L_start,.TOC.@tocbase,0
     26 
     27 	.text
     28 .L_start:
     29 #extern syms
     30 #GD
     31  addi 3,2,gd@got@tlsgd		#R_PPC64_GOT_TLSGD16	gd
     32  bl .__tls_get_addr		#R_PPC64_REL24		.__tls_get_addr
     33  nop
     34 
     35 #LD
     36  addi 3,2,ld@got@tlsld		#R_PPC64_GOT_TLSLD16	ld
     37  bl .__tls_get_addr		#R_PPC64_REL24		.__tls_get_addr
     38  nop
     39 
     40 #global syms
     41 #GD
     42  addi 3,2,gd0@got@tlsgd		#R_PPC64_GOT_TLSGD16	gd0
     43  bl .__tls_get_addr		#R_PPC64_REL24		.__tls_get_addr
     44  nop
     45 
     46 #LD
     47  addi 3,2,ld0@got@tlsld		#R_PPC64_GOT_TLSLD16	ld0
     48  bl .__tls_get_addr		#R_PPC64_REL24		.__tls_get_addr
     49  nop
     50 
     51  addi 9,3,ld0@dtprel		#R_PPC64_DTPREL16	ld0
     52 
     53  addis 9,3,ld1@dtprel@ha	#R_PPC64_DTPREL16_HA	ld1
     54  lwz 10,ld1@dtprel@l(9)		#R_PPC64_DTPREL16_LO	ld1
     55 
     56  ld 9,ld2@got@dtprel(2)		#R_PPC64_GOT_DTPREL16_DS ld2
     57  ldx 10,9,3
     58 
     59 #IE
     60  ld 9,ie0@got@tprel(2)		#R_PPC64_GOT_TPREL16_DS	ie0
     61  lhzx 10,9,ie0@tls		#R_PPC64_TLS		ie0
     62 
     63 #LE
     64  lbz 10,le0@tprel(13)		#R_PPC64_TPREL16	le0
     65 
     66  addis 9,13,le1@tprel@ha	#R_PPC64_TPREL16_HA	le1
     67  stb 10,le1@tprel@l(9)		#R_PPC64_TPREL16_LO	le1
     68 
     69 #local syms
     70 #GD
     71  addi 3,2,gd4@got@tlsgd		#R_PPC64_GOT_TLSGD16	gd4
     72  bl .__tls_get_addr		#R_PPC64_REL24		.__tls_get_addr
     73  nop
     74 
     75 #LD
     76  addi 3,2,ld4@got@tlsld		#R_PPC64_GOT_TLSLD16	ld4
     77  bl .__tls_get_addr		#R_PPC64_REL24		.__tls_get_addr
     78  nop
     79 
     80  std 10,ld4@dtprel(3)		#R_PPC64_DTPREL16_DS	ld4
     81 
     82  addis 9,3,ld5@dtprel@ha	#R_PPC64_DTPREL16_HA	ld5
     83  stw 10,ld5@dtprel@l(9)		#R_PPC64_DTPREL16_LO	ld5
     84 
     85  ld 9,ld6@got@dtprel(2)		#R_PPC64_GOT_DTPREL16_DS ld6
     86  stdx 10,9,3
     87 
     88 #IE
     89  ld 9,ie0@got@tprel(2)		#R_PPC64_GOT_TPREL16_DS	ie4
     90  sthx 10,9,ie0@tls		#R_PPC64_TLS		ie4
     91 
     92 #LE
     93  lwa 10,le4@tprel(13)		#R_PPC64_TPREL16	le4
     94 
     95  addis 9,13,le5@tprel@ha	#R_PPC64_TPREL16_HA	le5
     96  lha 10,le5@tprel@l(9)		#R_PPC64_TPREL16_LO	le5
     97 
     98