* config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
authorIan Lance Taylor <ian@airs.com>
Wed, 21 Feb 1996 03:30:01 +0000 (03:30 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 21 Feb 1996 03:30:01 +0000 (03:30 +0000)
in bss_section.
PR 9044.

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

index d4c5681531533f4ebaae42459c987d5a4ca9de65..11c9ee3589efad6e384dfdbbdb2bb3ffa9a66eda 100644 (file)
@@ -1,3 +1,8 @@
+Tue Feb 20 22:25:55 1996  Ian Lance Taylor  <ian@cygnus.com>
+
+       * config/tc-sh.c (sh_handle_align): Don't emit R_SH_ALIGN relocs
+       in bss_section.
+
 Mon Feb 19 14:16:24 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * config/tc-sparc.h (TC_RELOC_RTSYM_LOC_FIXUP): Check S_IS_WEAK as
index 34e7548ebb3e9d30ef41cc8d5cf2e8a0dbaa3332..fd242e93477e2a18a115462a209fc8e43efdf78e 100644 (file)
@@ -1429,7 +1429,8 @@ sh_handle_align (frag)
   if (sh_relax
       && frag->fr_type == rs_align
       && frag->fr_address + frag->fr_fix > 0
-      && frag->fr_offset > 1)
+      && frag->fr_offset > 1
+      && now_seg != bss_section)
     fix_new (frag, frag->fr_fix, 2, &abs_symbol, frag->fr_offset, 0,
             R_SH_ALIGN);
 }