1 .text 2 .global foo2 3foo2: 4 lw $2, %got(.data)($gp) # page entry 5 addi $2, $2, %lo(.data) 6 lw $2, %call16(foo0)($gp) # global entry 7 lw $2, %call16(foo2)($gp) # global entry 8 addiu $2, $2, %tlsgd(tls0) # tls gd entry 9 addiu $2, $2, %gottprel(tls0) # tls got entry 10 11 .data 12 .space 0x20000 13 14 .section .tdata,"awT",%progbits 15 .global tls2 16tls2: 17 .word 0 18