* config/tc-mips.c (nopic_need_relax): Handle -fdata-sections
authorThiemo Seufer <ths@networkno.de>
Fri, 23 Jun 2006 18:31:17 +0000 (18:31 +0000)
committerThiemo Seufer <ths@networkno.de>
Fri, 23 Jun 2006 18:31:17 +0000 (18:31 +0000)
generated .sbss.* and .gnu.linkonce.sb.*.

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

index 7c5c344c728b4740e3283597dd72b0830613f7c4..14c128b1d3293ec5416a2241c217a99be332de74 100644 (file)
@@ -1,3 +1,8 @@
+2006-06-23  Nigel Stephens  <nigel@mips.com>
+
+       * config/tc-mips.c (nopic_need_relax): Handle -fdata-sections
+       generated .sbss.* and .gnu.linkonce.sb.*.
+
 2006-06-23  Thiemo Seufer  <ths@mips.com>
             David Ung  <davidu@mips.com>
 
index 19e016130ea47813d83f850c50b66e68ad755164..9f995c44e40fbd6fca0836a3782b837a0c31b93e 100644 (file)
@@ -13113,6 +13113,8 @@ nopic_need_relax (symbolS *sym, int before_relaxing)
          change = (strcmp (segname, ".sdata") != 0
                    && strcmp (segname, ".sbss") != 0
                    && strncmp (segname, ".sdata.", 7) != 0
+                   && strncmp (segname, ".sbss.", 6) != 0
+                   && strncmp (segname, ".gnu.linkonce.sb.", 17) != 0
                    && strncmp (segname, ".gnu.linkonce.s.", 16) != 0);
        }
       return change;