Possible problem with gas on MIPS

Ulf Carlsson ulfc@calypso.engr.sgi.com
Thu Jun 8 03:51:00 GMT 2000


> I would suspect that the shift for R_MIPS_PC16 has not been documented in 
> the ABI or elsewhere and has just been missed out.

Yes, you're actually right.  It has been missed out.  We do shift the offsets
right by 2 when we link objects including R_MIPS_PC16 with gld.  This is 
however nothing we want to generate with gas.  IRIX as is actually reluctant
to assemble branches to symbols as well.  I think IRIX ld pukes on R_MIPS_PC16
whenever it gets the chance.

Ulf



More information about the Binutils mailing list