PR gas/14521
authorHans-Peter Nilsson <hp@axis.com>
Sat, 1 Sep 2012 18:09:26 +0000 (18:09 +0000)
committerHans-Peter Nilsson <hp@axis.com>
Sat, 1 Sep 2012 18:09:26 +0000 (18:09 +0000)
* gas/mmix/group-1.d, gas/mmix/group-1.s: New test.

gas/testsuite/ChangeLog
gas/testsuite/gas/mmix/group-1.d [new file with mode: 0644]
gas/testsuite/gas/mmix/group-1.s [new file with mode: 0644]

index e2a7e145946e5766433ecbc55cec7148cb62e0ab..cd23916c057a9367badf71f131cea1918b02ade2 100644 (file)
@@ -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 (file)
index 0000000..a464e35
--- /dev/null
@@ -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 (file)
index 0000000..f61a0aa
--- /dev/null
@@ -0,0 +1 @@
+ .section .text,"axG",@progbits,.foo,comdat