Add an assembler test for PR gas/21167

PR gas/21167
	* testsuite/gas/elf/elf.exp: Run group3.
	* testsuite/gas/elf/group3.d: New file.
	* testsuite/gas/elf/group3.s: Likewise.
This commit is contained in:
H.J. Lu 2017-10-04 18:01:47 -07:00
parent 8c6716e57e
commit 7d36e27991
4 changed files with 22 additions and 0 deletions

View File

@ -1,3 +1,10 @@
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

View File

@ -122,6 +122,7 @@ if { [is_elf_format] } then {
run_dump_test "group1a"
run_dump_test "group1b"
run_dump_test "group2"
run_dump_test "group3"
case $target_triplet in {
{ hppa64*-*-hpux* } { }
{ riscv*-*-* } { }

View File

@ -0,0 +1,7 @@
#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

View File

@ -0,0 +1,7 @@
.section .foo,"axG",%progbits,foo,comdat
.globl foo
.type foo,%function
foo:
.byte 1
.section .bar,"aG",%progbits,foo,comdat
.dc.a foo