diff options
author | H.J. Lu <hjl@lucon.org> | 2007-04-12 19:20:46 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2007-04-12 19:20:46 +0000 |
commit | c85887dce954a37a721d6bf3035b05620dbf3edb (patch) | |
tree | 7452dfbfd135b7ebf64d783f8ce903fb35844adf /binutils/testsuite/binutils-all/strip-3.d | |
parent | 23fdc92f7b328e87a6b3416347830558118d7792 (diff) | |
download | binutils-redhat-c85887dce954a37a721d6bf3035b05620dbf3edb.tar.gz |
2007-04-12 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4348
* objcopy.c (copy_object): Don't stop when there are no
sections to be copied.
testsuite/
2007-04-12 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/4348
* binutils-all/empty.s: New file.
* binutils-all/strip-3.d: Likewise.
* binutils-all/objcopy.exp: Run strip-3 for ELF target.
Diffstat (limited to 'binutils/testsuite/binutils-all/strip-3.d')
-rw-r--r-- | binutils/testsuite/binutils-all/strip-3.d | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/binutils/testsuite/binutils-all/strip-3.d b/binutils/testsuite/binutils-all/strip-3.d new file mode 100644 index 0000000000..6d2b4514b0 --- /dev/null +++ b/binutils/testsuite/binutils-all/strip-3.d @@ -0,0 +1,11 @@ +#PROG: strip +#source: empty.s +#strip: -R .text -R .data -R .bss +#readelf: -S --wide +#name: strip empty file +#target: *-*-linux* + +#... + \[[ 0]+\][ \t]+NULL[ \t]+.* + \[[ 1]+\] \.shstrtab.*[ \t]+STRTAB[ \t]+.* +#pass |