diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2002-12-08 21:25:38 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2002-12-08 21:25:38 +0000 |
commit | ffbceea9fb49e8dd28c88a4b59cf8616b2dcc210 (patch) | |
tree | a8d0fa133e84b5fe2e95dc3718502a7b03d527e7 /gas/config | |
parent | f39f5da9e66e6da4aebe7e3e25e51ce623692772 (diff) | |
download | gdb-ffbceea9fb49e8dd28c88a4b59cf8616b2dcc210.zip gdb-ffbceea9fb49e8dd28c88a4b59cf8616b2dcc210.tar.gz gdb-ffbceea9fb49e8dd28c88a4b59cf8616b2dcc210.tar.bz2 |
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.
Diffstat (limited to 'gas/config')
-rw-r--r-- | gas/config/tc-ia64.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c index 1feedf5..40f6f69 100644 --- a/gas/config/tc-ia64.c +++ b/gas/config/tc-ia64.c @@ -10414,7 +10414,6 @@ md_apply_fix3 (fix, valP, seg) { char *fixpos; valueT value = *valP; - int adjust = 0; fixpos = fix->fx_frag->fr_literal + fix->fx_where; @@ -10424,22 +10423,18 @@ md_apply_fix3 (fix, valP, seg) { case BFD_RELOC_IA64_DIR32MSB: fix->fx_r_type = BFD_RELOC_IA64_PCREL32MSB; - adjust = 1; break; case BFD_RELOC_IA64_DIR32LSB: fix->fx_r_type = BFD_RELOC_IA64_PCREL32LSB; - adjust = 1; break; case BFD_RELOC_IA64_DIR64MSB: fix->fx_r_type = BFD_RELOC_IA64_PCREL64MSB; - adjust = 1; break; case BFD_RELOC_IA64_DIR64LSB: fix->fx_r_type = BFD_RELOC_IA64_PCREL64LSB; - adjust = 1; break; default: @@ -10474,11 +10469,6 @@ md_apply_fix3 (fix, valP, seg) default: 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) { |