aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2012-09-01 18:09:26 +0000
committerHans-Peter Nilsson <hp@axis.com>2012-09-01 18:09:26 +0000
commit9c75beeb5a4886071f0e6602879a4bf3e6eebe63 (patch)
tree89393284df990ff300ae12017ca828fb30ba43c7 /gas
parentfda395cfaef907204352ae1a489c446a74ae3c84 (diff)
downloadgdb-9c75beeb5a4886071f0e6602879a4bf3e6eebe63.zip
gdb-9c75beeb5a4886071f0e6602879a4bf3e6eebe63.tar.gz
gdb-9c75beeb5a4886071f0e6602879a4bf3e6eebe63.tar.bz2
PR gas/14521
* gas/mmix/group-1.d, gas/mmix/group-1.s: New test.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/mmix/group-1.d12
-rw-r--r--gas/testsuite/gas/mmix/group-1.s1
3 files changed, 18 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index e2a7e14..cd23916 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-01 Hans-Peter Nilsson <hp@bitrange.com>
+
+ PR gas/14521
+ * gas/mmix/group-1.d, gas/mmix/group-1.s: New test.
+
2012-08-24 H.J. Lu <hongjiu.lu@intel.com>
* gas/elf/group0c.d: Skip Solaris.
diff --git a/gas/testsuite/gas/mmix/group-1.d b/gas/testsuite/gas/mmix/group-1.d
new file mode 100644
index 0000000..a464e35
--- /dev/null
+++ b/gas/testsuite/gas/mmix/group-1.d
@@ -0,0 +1,12 @@
+#readelf: -Wa
+
+# Sanity check; the .section line caused a gas SEGV.
+# See PR gas/14521.
+
+#...
+ +\[ .\] \.text +PROGBITS +0+ +0+48 +0+ +0+ +AXG +.*
+#...
+COMDAT group section \[ 1\] `\.group' \[\.foo\] contains 1 sections:
+ +\[Index\] +Name
+ +\[ +.\] +\.text
+#pass
diff --git a/gas/testsuite/gas/mmix/group-1.s b/gas/testsuite/gas/mmix/group-1.s
new file mode 100644
index 0000000..f61a0aa
--- /dev/null
+++ b/gas/testsuite/gas/mmix/group-1.s
@@ -0,0 +1 @@
+ .section .text,"axG",@progbits,.foo,comdat