1 .abicalls 2 .option pic0 3 .global __start 4 .ent __start 5__start: 6 jal foo 7 j ext 8 .end __start 9 10 .global ext 11 .ent ext 12ext: 13 lui $gp,%hi(__gnu_local_gp) 14 addiu $gp,$gp,%lo(__gnu_local_gp) 15 lw $2,%got(local)($gp) 16 addiu $2,$2,%lo(local) 17 lw $25,%call16(bar)($gp) 18 jr $25 19 .end ext 20 21 .data 22local: .word 1 23