summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorThiemo Seufer <ths@networkno.de>2006-06-23 18:31:17 +0000
committerThiemo Seufer <ths@networkno.de>2006-06-23 18:31:17 +0000
commitd4dc2f22f5996cf5b296206b87983b382ed64a43 (patch)
tree42314aada10274562e15d19b549832a9b32b4b52 /gas
parent0faaaeb8fc6916f0edbe9736309f68ca59a15cf5 (diff)
downloadbinutils-gdb-d4dc2f22f5996cf5b296206b87983b382ed64a43.tar.gz
* config/tc-mips.c (nopic_need_relax): Handle -fdata-sections
generated .sbss.* and .gnu.linkonce.sb.*.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7c5c344c728..14c128b1d32 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -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>
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 19e016130ea..9f995c44e40 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -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;