diff options
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-sh.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gas/config/tc-sh.c b/gas/config/tc-sh.c index ce780a1..b266b80 100644 --- a/gas/config/tc-sh.c +++ b/gas/config/tc-sh.c @@ -2975,7 +2975,9 @@ md_apply_fix3 (fixP, valP, seg) /* Make the jump instruction point to the address of the operand. At runtime we merely add the offset to the actual PLT entry. */ * valP = 0xfffffffc; - val = fixP->fx_addnumber - S_GET_VALUE (fixP->fx_subsy); + val = fixP->fx_addnumber; + if (fixP->fx_subsy) + val -= S_GET_VALUE (fixP->fx_subsy); md_number_to_chars (buf, val, 4); break; |