diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2008-10-02 01:06:12 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2008-10-02 01:06:12 +0000 |
commit | e1e87d1e172ce154bafd12cff5caaacc86d4c353 (patch) | |
tree | 243781a1ec02e429be3fa3ee983e7d8222fd9843 /binutils | |
parent | 6b240e93718a52a896a02f2df1cf82f4a9b95a93 (diff) | |
download | gdb-e1e87d1e172ce154bafd12cff5caaacc86d4c353.zip gdb-e1e87d1e172ce154bafd12cff5caaacc86d4c353.tar.gz gdb-e1e87d1e172ce154bafd12cff5caaacc86d4c353.tar.bz2 |
2008-10-01 H.J. Lu <hongjiu.lu@intel.com>
* binutils-all/group-4.s: New.
* binutils-all/strip-8.d: Likewise.
* binutils-all/strip-9.d: Likewise.
* binutils-all/objcopy.exp: Test objcopy on group-4.s. Run
strip-8 and strip-9.
Diffstat (limited to 'binutils')
-rw-r--r-- | binutils/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/group-4.s | 6 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/objcopy.exp | 3 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/strip-8.d | 11 | ||||
-rw-r--r-- | binutils/testsuite/binutils-all/strip-9.d | 18 |
5 files changed, 47 insertions, 0 deletions
diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index 3dbf480..c0fc86f 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -1,5 +1,14 @@ 2008-10-01 H.J. Lu <hongjiu.lu@intel.com> + * binutils-all/group-4.s: New. + * binutils-all/strip-8.d: Likewise. + * binutils-all/strip-9.d: Likewise. + + * binutils-all/objcopy.exp: Test objcopy on group-4.s. Run + strip-8 and strip-9. + +2008-10-01 H.J. Lu <hongjiu.lu@intel.com> + * binutils-all/group-3.s: New. * binutils-all/strip-6.d: Likewise. * binutils-all/strip-7.d: Likewise. diff --git a/binutils/testsuite/binutils-all/group-4.s b/binutils/testsuite/binutils-all/group-4.s new file mode 100644 index 0000000..8eae91e --- /dev/null +++ b/binutils/testsuite/binutils-all/group-4.s @@ -0,0 +1,6 @@ + .section .text,"axG",%progbits,foo,comdat +foo: + .word 0 + .section .data,"awG",%progbits,foo,comdat +bar: + .word 0 diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index 848fb50..997b543 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -829,6 +829,7 @@ if [is_elf_format] { objcopy_test_readelf "ELF group" group.s objcopy_test_readelf "ELF group" group-2.s objcopy_test_readelf "ELF group" group-3.s + objcopy_test_readelf "ELF group" group-4.s run_dump_test "copy-1" } @@ -843,6 +844,8 @@ if [is_elf_format] { run_dump_test "strip-5" run_dump_test "strip-6" run_dump_test "strip-7" + run_dump_test "strip-8" + run_dump_test "strip-9" if { [istarget "i*86-*"] || [istarget "x86_64-*-*"] } { # Check to make sure we don't strip a symbol named in relocations. diff --git a/binutils/testsuite/binutils-all/strip-8.d b/binutils/testsuite/binutils-all/strip-8.d new file mode 100644 index 0000000..5618510 --- /dev/null +++ b/binutils/testsuite/binutils-all/strip-8.d @@ -0,0 +1,11 @@ +#PROG: strip +#source: group-4.s +#readelf: -Sg --wide +#name: strip with section group 8 + +#... + \[[ 0-9]+\] \.text.*[ \t]+PROGBITS[ \t0-9a-f]+AX[ \t]+.* +#... + \[[ 0-9]+\] \.data.*[ \t]+PROGBITS[ \t0-9a-f]+WA[ \t]+.* +#... +There are no section groups in this file. diff --git a/binutils/testsuite/binutils-all/strip-9.d b/binutils/testsuite/binutils-all/strip-9.d new file mode 100644 index 0000000..2ec2fc3 --- /dev/null +++ b/binutils/testsuite/binutils-all/strip-9.d @@ -0,0 +1,18 @@ +#PROG: strip +#source: group-4.s +#strip: --strip-unneeded +#readelf: -Sg --wide +#name: strip with section group 9 + +#... + \[[ 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 |