PR gas/21167
* testsuite/gas/elf/elf.exp: Run group3.
* testsuite/gas/elf/group3.d: New file.
* testsuite/gas/elf/group3.s: Likewise.
+2017-10-04 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/21167
+ * testsuite/gas/elf/elf.exp: Run group3.
+ * testsuite/gas/elf/group3.d: New file.
+ * testsuite/gas/elf/group3.s: Likewise.
+
2017-10-05 Alan Modra <amodra@gmail.com>
PR 21167
run_dump_test "group1a"
run_dump_test "group1b"
run_dump_test "group2"
+ run_dump_test "group3"
case $target_triplet in {
{ hppa64*-*-hpux* } { }
{ riscv*-*-* } { }
--- /dev/null
+#readelf: -g --wide
+
+COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 3 sections:
+ \[Index\] Name
+ \[[ 0-9]+\] \.foo
+ \[[ 0-9]+\] \.bar
+ \[[ 0-9]+\] \.rela?\.bar
--- /dev/null
+ .section .foo,"axG",%progbits,foo,comdat
+ .globl foo
+ .type foo,%function
+foo:
+ .byte 1
+ .section .bar,"aG",%progbits,foo,comdat
+ .dc.a foo