1 #as: -march=mips2 -mabi=32 2 #objdump: -M gpr-names=numeric -dr 3 #name: MIPS ELF reloc 8 (MIPS16 version) 4 5 .*: file format .* 6 7 Disassembly of section \.text: 8 9 0+00 <foo>: 10 0: 675c move \$2,\$28 11 2: f000 6c00 li \$4,0 12 2: R_MIPS16_HI16 gvar 13 6: f400 3480 sll \$4,16 14 a: f000 4c00 addiu \$4,0 15 a: R_MIPS16_LO16 gvar 16 e: f000 9d80 lw \$4,0\(\$5\) 17 e: R_MIPS16_LO16 gvar 18 12: f000 9982 lw \$4,2\(\$17\) 19 16: f000 9a80 lw \$4,0\(\$2\) 20 16: R_MIPS16_GOT16 \.data 21 1a: f000 c4a0 sb \$5,0\(\$4\) 22 1a: R_MIPS16_LO16 \.data 23 1e: f000 9a80 lw \$4,0\(\$2\) 24 1e: R_MIPS16_GOT16 \.data 25 22: f000 4c00 addiu \$4,0 26 22: R_MIPS16_LO16 \.data 27 26: f000 9a60 lw \$3,0\(\$2\) 28 26: R_MIPS16_CALL16 gfunc 29 2a: f000 4c00 addiu \$4,0 30 2a: R_MIPS16_CALL16 gfunc 31 2e: f000 9a80 lw \$4,0\(\$2\) 32 2e: R_MIPS16_GPREL gvar 33 32: f000 da80 sw \$4,0\(\$2\) 34 32: R_MIPS16_GPREL gvar 35 36: f000 4c00 addiu \$4,0 36 36: R_MIPS16_GPREL gvar 37 3a: 6500 nop 38 #pass 39