2011-03-23 23:25:06 +08:00
|
|
|
.section ".tbss","awT",@nobits
|
|
|
|
.global gd0
|
|
|
|
.align 3
|
|
|
|
gd0: .space 8
|
|
|
|
|
|
|
|
.section ".opt1", "ax", %progbits
|
2017-07-14 17:07:26 +08:00
|
|
|
addi 3,30,gd@got@tlsgd
|
2011-03-23 23:25:06 +08:00
|
|
|
cmpwi 4,0
|
|
|
|
beq 0f
|
|
|
|
bl __tls_get_addr(gd@tlsgd)
|
|
|
|
b 1f
|
|
|
|
0:
|
|
|
|
bl __tls_get_addr(gd@tlsgd)
|
|
|
|
1:
|
|
|
|
|
|
|
|
.section ".opt2", "ax", %progbits
|
2017-07-14 17:07:26 +08:00
|
|
|
addi 3,30,gd@got@tlsgd
|
2011-03-23 23:25:06 +08:00
|
|
|
cmpwi 4,0
|
|
|
|
beq 0f
|
2017-07-14 17:07:26 +08:00
|
|
|
addi 3,30,gd@got@tlsgd
|
2011-03-23 23:25:06 +08:00
|
|
|
0:
|
|
|
|
bl __tls_get_addr(gd@tlsgd)
|
|
|
|
|
|
|
|
.section ".opt3", "ax", %progbits
|
2017-07-14 17:07:26 +08:00
|
|
|
addi 3,30,gd@got@tlsgd
|
2011-03-23 23:25:06 +08:00
|
|
|
b 0f
|
2017-07-14 17:07:26 +08:00
|
|
|
addi 3,30,gd0@got@tlsgd
|
2011-03-23 23:25:06 +08:00
|
|
|
b 1f
|
|
|
|
0:
|
|
|
|
bl __tls_get_addr(gd@tlsgd)
|
|
|
|
b 2f
|
|
|
|
1:
|
|
|
|
bl __tls_get_addr(gd0@tlsgd)
|
|
|
|
2:
|