mirror of
https://frontier.innolan.net/github/amigaos-binutils.git
synced 2026-09-12 02:51:47 +00:00
* (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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user