1 .set noat 2 3 .sdata 4 5 sym1: 6 .long 0xdead 7 sym2: 8 .long 0xbeef 9 sym3: 10 .byte 0x7f 11 12 .section .sbss, "w" 13 sym4: 14 .long 0 15 sym5: 16 .long 0 17 sym6: 18 .byte 0 19 20 .text 21 .global _start 22 _start: 23 movui gp, _gp 24 ldw r1, %gprel(sym1)(gp) 25 ldw r2, %gprel(sym2)(gp) 26 ldb r3, %gprel(sym3)(gp) 27 ldw r1, %gprel(sym4)(gp) 28 ldw r2, %gprel(sym5)(gp) 29 ldb r3, %gprel(sym6)(gp) 30