mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-29 18:41:27 +00:00
* config/tc-mips.c (md_apply_fix): Don't subtract the symbol value
from GPREL addends.
This commit is contained in:
@@ -9527,7 +9527,9 @@ md_apply_fix (fixP, valueP)
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user