1 .text 2 .globl foo 3 .globl global_tls 4 .ent foo 5foo: 6$LCL: 7 lui $2, %hi($LCL) 8 addiu $2, %lo($LCL) 9 lui $2, %hi(bar) 10 addiu $2, %lo(bar) 11 lui $a0,%tprel_hi(local_tls) 12 addiu $a0,$a0,%tprel_lo(local_tls) 13 lui $a0,%tprel_hi(global_tls) 14 addiu $a0,$a0,%tprel_lo(global_tls) 15 .end foo 16 .type local_tls,%object 17 .type global_tls,%object 18 .section .tbss,"awT",@nobits 19local_tls: 20 .word 21global_tls: 22 .word 23