1 #as: -march=mips3 -mabi=n32 -KPIC 2 #readelf: --relocs 3 #name: MIPS ELF reloc 10 4 5 Relocation section '\.rela\.text' at offset .* contains 22 entries: 6 *Offset * Info * Type * Sym\.Value * Sym\. Name \+ Addend 7 0+0000 * 0+..07 * R_MIPS_GPREL16 * 0+0000 * foo \+ 0 8 0+0000 * 0+0018 * R_MIPS_SUB * 0 9 0+0000 * 0+0005 * R_MIPS_HI16 * 0 10 0+0004 * 0+..07 * R_MIPS_GPREL16 * 0+0000 * foo \+ 0 11 0+0004 * 0+0018 * R_MIPS_SUB * 0 12 0+0004 * 0+0006 * R_MIPS_LO16 * 0 13 0+000c * 0+..07 * R_MIPS_GPREL16 * 0+0000 * \.text \+ c 14 0+000c * 0+0018 * R_MIPS_SUB * 0 15 0+000c * 0+0005 * R_MIPS_HI16 * 0 16 0+0010 * 0+..07 * R_MIPS_GPREL16 * 0+0000 * \.text \+ c 17 0+0010 * 0+0018 * R_MIPS_SUB * 0 18 0+0010 * 0+0006 * R_MIPS_LO16 * 0 19 0+0018 * 0+..14 * R_MIPS_GOT_PAGE * 0+0000 * foo \+ 0 20 0+001c * 0+..15 * R_MIPS_GOT_OFST * 0+0000 * foo \+ 0 21 0+0020 * 0+..14 * R_MIPS_GOT_PAGE * 0+0000 * foo \+ 1234 22 0+0024 * 0+..15 * R_MIPS_GOT_OFST * 0+0000 * foo \+ 1234 23 0+0028 * 0+..14 * R_MIPS_GOT_PAGE * 0+0000 * \.text \+ c 24 0+002c * 0+..15 * R_MIPS_GOT_OFST * 0+0000 * \.text \+ c 25 0+0030 * 0+..14 * R_MIPS_GOT_PAGE * 0+0000 * \.text \+ 33221d 26 0+0034 * 0+..15 * R_MIPS_GOT_OFST * 0+0000 * \.text \+ 33221d 27 0+0038 * 0+..14 * R_MIPS_GOT_PAGE * 0+0000 * \.text \+ 18 28 0+003c * 0+..15 * R_MIPS_GOT_OFST * 0+0000 * \.text \+ 18 29 #pass 30