* config/tc-alpha.h (DIFF_EXPR_OK): Define.
authorRichard Henderson <rth@redhat.com>
Wed, 15 Oct 1997 02:17:00 +0000 (02:17 +0000)
committerRichard Henderson <rth@redhat.com>
Wed, 15 Oct 1997 02:17:00 +0000 (02:17 +0000)
        * config/tc-i386.h (DIFF_EXPR_OK): Define.
        * config/tc-alpha.c (md_apply_fix): Notice fx_pcrel and substitute
        the correct relocation when it exists.
        * config/tc-i386.c (md_apply_fix3): Likewise.
        * config/tc-ppc.h: Correct typo in comment.
        * config/tc-v850.h: Likewise.

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

index 1dc872da4e2364f2dbaa06c4f1a936ce0808f4b0..010e832b954374b19d13d20709d1748b5fb2308a 100644 (file)
@@ -1,3 +1,14 @@
+Tue Oct 14 19:12:45 1997  Richard Henderson  <rth@cygnus.com>
+
+       * config/tc-alpha.h (DIFF_EXPR_OK): Define.
+       * config/tc-i386.h (DIFF_EXPR_OK): Define.
+       * config/tc-alpha.c (md_apply_fix): Notice fx_pcrel and substitute
+       the correct relocation when it exists.
+       * config/tc-i386.c (md_apply_fix3): Likewise.
+
+       * config/tc-ppc.h: Correct typo in comment.
+       * config/tc-v850.h: Likewise.
+
 Fri Oct 10 16:09:35 1997  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * config/tc-d10v.c (parallel_ok): Allow parallel instruction issue
index 7f7aaab5365908edccec0a23381592b9a1944b78..08baf6be02abf690281ca86b8930685cf72d5885 100644 (file)
@@ -1050,12 +1050,18 @@ md_apply_fix (fixP, valueP)
       break;
 
     case BFD_RELOC_16:
+      if (fixP->fx_pcrel)
+       fixP->fx_r_type = BFD_RELOC_16_PCREL;
       size = 2;
       goto do_reloc_xx;
     case BFD_RELOC_32:
+      if (fixP->fx_pcrel)
+       fixP->fx_r_type = BFD_RELOC_32_PCREL;
       size = 4;
       goto do_reloc_xx;
     case BFD_RELOC_64:
+      if (fixP->fx_pcrel)
+       fixP->fx_r_type = BFD_RELOC_64_PCREL;
       size = 8;
     do_reloc_xx:
       if (fixP->fx_pcrel == 0 && fixP->fx_addsy == 0)
This page took 0.031497 seconds and 4 git commands to generate.