Fix the reloc sort

To ARM/PPC, the order of reloc entry has nothing to do with
the relocation resolving method in the loader.However, to mips,
the order of R_MIPS_HI16 and R_MIPS_LO16 should be considered
carefully.This patch is to make HI16 be resolved before LO16, to
those with the same target symbol.