2002-12-08 H.J. Lu <hjl@gnu.org>
* config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack copied from tc-i386.c.
This commit is contained in:
parent
f39f5da9e6
commit
ffbceea9fb
2 changed files with 5 additions and 10 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2002-12-08 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
|
||||||
|
copied from tc-i386.c.
|
||||||
|
|
||||||
2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
|
2002-12-08 Stephane Carrez <stcarrez@nerim.fr>
|
||||||
|
|
||||||
Fix Bug savannah/1825:
|
Fix Bug savannah/1825:
|
||||||
|
|
|
@ -10414,7 +10414,6 @@ md_apply_fix3 (fix, valP, seg)
|
||||||
{
|
{
|
||||||
char *fixpos;
|
char *fixpos;
|
||||||
valueT value = *valP;
|
valueT value = *valP;
|
||||||
int adjust = 0;
|
|
||||||
|
|
||||||
fixpos = fix->fx_frag->fr_literal + fix->fx_where;
|
fixpos = fix->fx_frag->fr_literal + fix->fx_where;
|
||||||
|
|
||||||
|
@ -10424,22 +10423,18 @@ md_apply_fix3 (fix, valP, seg)
|
||||||
{
|
{
|
||||||
case BFD_RELOC_IA64_DIR32MSB:
|
case BFD_RELOC_IA64_DIR32MSB:
|
||||||
fix->fx_r_type = BFD_RELOC_IA64_PCREL32MSB;
|
fix->fx_r_type = BFD_RELOC_IA64_PCREL32MSB;
|
||||||
adjust = 1;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BFD_RELOC_IA64_DIR32LSB:
|
case BFD_RELOC_IA64_DIR32LSB:
|
||||||
fix->fx_r_type = BFD_RELOC_IA64_PCREL32LSB;
|
fix->fx_r_type = BFD_RELOC_IA64_PCREL32LSB;
|
||||||
adjust = 1;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BFD_RELOC_IA64_DIR64MSB:
|
case BFD_RELOC_IA64_DIR64MSB:
|
||||||
fix->fx_r_type = BFD_RELOC_IA64_PCREL64MSB;
|
fix->fx_r_type = BFD_RELOC_IA64_PCREL64MSB;
|
||||||
adjust = 1;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case BFD_RELOC_IA64_DIR64LSB:
|
case BFD_RELOC_IA64_DIR64LSB:
|
||||||
fix->fx_r_type = BFD_RELOC_IA64_PCREL64LSB;
|
fix->fx_r_type = BFD_RELOC_IA64_PCREL64LSB;
|
||||||
adjust = 1;
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -10474,11 +10469,6 @@ md_apply_fix3 (fix, valP, seg)
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ??? This is a hack copied from tc-i386.c to make PCREL relocs
|
|
||||||
work. There should be a better way to handle this. */
|
|
||||||
if (adjust)
|
|
||||||
fix->fx_offset += fix->fx_where + fix->fx_frag->fr_address;
|
|
||||||
}
|
}
|
||||||
else if (fix->tc_fix_data.opnd == IA64_OPND_NIL)
|
else if (fix->tc_fix_data.opnd == IA64_OPND_NIL)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue