2002-12-08 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 8 Dec 2002 21:25:38 +0000 (21:25 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 8 Dec 2002 21:25:38 +0000 (21:25 +0000)
* config/tc-ia64.c (md_apply_fix3): Remove the PCREL hack
copied from tc-i386.c.

gas/ChangeLog
gas/config/tc-ia64.c

index da08b6f526d3e272626cb2bd04d1a21170b8a2db..0d33206f6c16233a59e87a7788a94a919585371c 100644 (file)
@@ -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>
 
        Fix Bug savannah/1825:
index 1feedf56375673b01ff8d350ff71362e122840b0..40f6f695ab394b321737c1649cacc43bb6225376 100644 (file)
@@ -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)
     {
This page took 0.035628 seconds and 4 git commands to generate.