1 .text 2 .global foo 3foo: 4 subi gr15, #gprel12(bar), gr16 5 6 addi gr15, #got12(foo), gr4 7 ldi @(gr15, #got12(foo)), gr5 8 9 setlo #gotlo(foo), gr6 10 sethi #gothi(foo), gr6 11 12 addi gr15, #gotfuncdesc12(foo), gr7 13 ldi @(gr15, #gotfuncdesc12(foo)), gr8 14 15 setlo #gotfuncdesclo(foo), gr9 16 sethi #gotfuncdeschi(foo), gr9 17 18 addi gr15, #gotoff12(baz), gr16 19 20 addi gr15, #gotoff12(foo), gr4 21 ldi @(gr15, #gotoff12(foo)), gr5 22 23 setlo #gotofflo(foo), gr6 24 sethi #gotoffhi(foo), gr6 25 26 addi gr15, #gotofffuncdesc12(foo), gr7 27 ldi @(gr15, #gotofffuncdesc12(foo)), gr8 28 29 setlo #gotofffuncdesclo(foo), gr9 30 sethi #gotofffuncdeschi(foo), gr9 31 32 .section .rodata 33bar: 34 35 .section .sdata,"aw",@progbits 36 .p2align 2 37baz: 38 .picptr funcdesc(foo) 39 .word foo 40