* write.c (fixup_segment): Don't add symbol value to addend if
authorJeff Law <law@redhat.com>
Wed, 16 Oct 1996 17:32:39 +0000 (17:32 +0000)
committerJeff Law <law@redhat.com>
Wed, 16 Oct 1996 17:32:39 +0000 (17:32 +0000)
        TC_V850 and OBJ_ELF.
        * config/tc-v850.h (tc_fix_adjustable): Don't adjust any
        pc-relative fixups.
Fixing more failures in the g++ testsuite.

gas/ChangeLog
gas/config/tc-v850.c
gas/config/tc-v850.h

index eb42912..6ed998a 100644 (file)
@@ -1,5 +1,16 @@
 start-sanitize-v850
-Wed Oct 16 00:19:00 1996  Jeffrey A Law  (law@cygnus.com)
+Wed Oct 16 11:28:31 1996  Jeffrey A Law  (law@cygnus.com)
+
+       * write.c (fixup_segment): Don't add symbol value to addend if
+       TC_V850 and OBJ_ELF.
+       * config/tc-v850.h (tc_fix_adjustable): Don't adjust any
+       pc-relative fixups.
+
+       * config/tc-v850.c (md_pcrel_from): Undo yesterday's changes.
+       (md_pcrel_from_section): Likewise.
+       * config/tc-v850.h (MD_PCREL_FROM_SECTION): Likewise.
+
+Tue Oct 15 23:19:00 1996  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-v850.c (md_pcrel_from): Delete unused function.
        (md_pcrel_from_section): New function.
index e2c3f56..f1c8d7c 100644 (file)
@@ -814,14 +814,12 @@ md_estimate_size_before_relax (fragp, seg)
 } 
 
 long
-md_pcrel_from_section (fixp, sec)
+md_pcrel_from (fixp)
      fixS *fixp;
-     segT sec;
 {
   /* If the symbol is undefined, or in a section other than our own,
      then let the linker figure it out.  */
-  if ((fixp->fx_addsy != (symbolS *) NULL && ! S_IS_DEFINED (fixp->fx_addsy))
-      || (fixp->fx_addsy && S_GET_SEGMENT (fixp->fx_addsy) != sec))
+  if (fixp->fx_addsy != (symbolS *) NULL && ! S_IS_DEFINED (fixp->fx_addsy))
     {
       /* The symbol is undefined.  Let the linker figure it out.  */
       return 0;
index dac6f25..3ea07f7 100644 (file)
@@ -47,5 +47,4 @@
 
 #define md_number_to_chars number_to_chars_littleendian
 
-/* call md_pcrel_from_section, not md_pcrel_from */
-#define MD_PCREL_FROM_SECTION(FIXP, SEC) md_pcrel_from_section(FIXP, SEC)
+#define tc_fix_adjustable(FIX) (!(FIX)->fx_pcrel)