+2001-08-03 Richard Sandiford <rsandifo@redhat.com>
+
+ * config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
+ from GPREL addends.
+
2001-08-02 Richard Sandiford <rsandifo@redhat.com>
* doc/c-mips.tex (-mgp32, -mfp32): Added -mfp32, unified with -mgp32.
{
valueT symval = S_GET_VALUE (fixP->fx_addsy);
value -= symval;
- if (value != 0 && ! fixP->fx_pcrel)
+ if (value != 0
+ && ! fixP->fx_pcrel
+ && fixP->fx_r_type != BFD_RELOC_MIPS_GPREL)
{
/* In this case, the bfd_install_relocation routine will
incorrectly add the symbol value back in. We just want