* (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.
This commit is contained in:
Gunther Nikl
2008-11-20 17:07:25 +00:00
parent d05ef800d5
commit 2d9409254e
+3 -2
View File
@@ -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;
}