From 2d9409254ea991e1d41686102416c47e1ebb3336 Mon Sep 17 00:00:00 2001 From: Gunther Nikl Date: Thu, 20 Nov 2008 17:07:25 +0000 Subject: [PATCH] * (md_pcrel_from): Remove broken OBJ_AMIGAHUNK specific code. * (md_apply_fix3): Do not emit fix value for a pcrel fix when generating a hunk object. --- gas/config/tc-m68k.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gas/config/tc-m68k.c b/gas/config/tc-m68k.c index 27fe4bc..7c2487f 100644 --- a/gas/config/tc-m68k.c +++ b/gas/config/tc-m68k.c @@ -4315,6 +4315,9 @@ md_apply_fix3 (fixP, valP, seg) buf += fixP->fx_where; /* end ibm compiler workaround */ + if (OBJ_AMIGAHUNK && fixP->fx_pcrel) + return; + val = ((val & 0xffffffff) ^ 0x80000000) - 0x80000000; if (fixP->fx_addsy == NULL && fixP->fx_pcrel == 0) @@ -7283,8 +7286,6 @@ md_pcrel_from (fixP) adjust = ((fixP->fx_pcrel_adjust & 0xff) ^ 0x80) - 0x80; if (adjust == 64) adjust = -1; - if (OBJ_AMIGAHUNK) - return -adjust; return fixP->fx_where + fixP->fx_frag->fr_address - adjust; }