This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: Possible problem with gas on MIPS
- To: "Koundinya.K" <kk at ddeorg dot soft dot net>
- Subject: Re: Possible problem with gas on MIPS
- From: Ulf Carlsson <ulfc at calypso dot engr dot sgi dot com>
- Date: Thu, 8 Jun 2000 03:49:57 -0700 (PDT)
- Cc: binutils at sourceware dot cygnus dot com
> 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