From: H.J. Lu Date: Fri, 3 Oct 2008 14:08:38 +0000 (+0000) Subject: 2008-10-03 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=29b9ceead4de5aac9be66c31838bd65ada3e9db2;p=binutils-gdb.git 2008-10-03 H.J. Lu PR ld/6931 * ld-elf/group4.d: New. * ld-elf/group5.d: Likewise. * ld-elf/group6.d: Likewise. --- diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index c7f7539ab5d..444134c8f11 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2008-10-03 H.J. Lu + + PR ld/6931 + * ld-elf/group4.d: New. + * ld-elf/group5.d: Likewise. + * ld-elf/group6.d: Likewise. + 2008-10-03 Alan Modra * ld-powerpc/vxworks1-lib.rd: Update. diff --git a/ld/testsuite/ld-elf/group4.d b/ld/testsuite/ld-elf/group4.d new file mode 100644 index 00000000000..92a54bd9154 --- /dev/null +++ b/ld/testsuite/ld-elf/group4.d @@ -0,0 +1,16 @@ +#source: ../../../binutils/testsuite/binutils-all/group-2.s +#ld: -r +#readelf: -Sg --wide + +#... + \[[ 0-9]+\] .group[ \t]+GROUP[ \t]+.* +#... + \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AXG[ \t]+.* +#... + \[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG[ \t]+.* +#... +COMDAT group section \[[ 0-9]+\] `.group' \[.text.foo\] contains 2 sections: + \[Index\] Name + \[[ 0-9]+\] .text.* + \[[ 0-9]+\] .data.* +#pass diff --git a/ld/testsuite/ld-elf/group5.d b/ld/testsuite/ld-elf/group5.d new file mode 100644 index 00000000000..6c3284653d7 --- /dev/null +++ b/ld/testsuite/ld-elf/group5.d @@ -0,0 +1,16 @@ +#source: ../../../binutils/testsuite/binutils-all/group-3.s +#ld: -r +#readelf: -Sg --wide + +#... + \[[ 0-9]+\] .group[ \t]+GROUP[ \t]+.* +#... + \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AXG[ \t]+.* +#... + \[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG[ \t]+.* +#... +COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 2 sections: + \[Index\] Name + \[[ 0-9]+\] .text.* + \[[ 0-9]+\] .data.* +#pass diff --git a/ld/testsuite/ld-elf/group6.d b/ld/testsuite/ld-elf/group6.d new file mode 100644 index 00000000000..84525b4e1a0 --- /dev/null +++ b/ld/testsuite/ld-elf/group6.d @@ -0,0 +1,16 @@ +#source: ../../../binutils/testsuite/binutils-all/group-4.s +#ld: -r +#readelf: -Sg --wide + +#... + \[[ 0-9]+\] .group[ \t]+GROUP[ \t]+.* +#... + \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AXG[ \t]+.* +#... + \[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WAG[ \t]+.* +#... +COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains 2 sections: + \[Index\] Name + \[[ 0-9]+\] .text.* + \[[ 0-9]+\] .data.* +#pass