diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2006-09-14 23:37:35 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2006-09-14 23:37:35 +0000 |
commit | 748fc5e9b442d7330373191ad556ce708cf14cb0 (patch) | |
tree | 4c855420eb8ab964e16f2b96722abab6e2a7abd8 /binutils/testsuite/lib | |
parent | 30288845d67c64d07905c1e4ca9de4768d3b2dd8 (diff) | |
download | gdb-748fc5e9b442d7330373191ad556ce708cf14cb0.zip gdb-748fc5e9b442d7330373191ad556ce708cf14cb0.tar.gz gdb-748fc5e9b442d7330373191ad556ce708cf14cb0.tar.bz2 |
binutils/
2006-09-14 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3182
* objcopy.c (group_signature): Return proper group signature.
binutils/testsuite/
2006-09-14 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/3182
* binutils-all/objcopy.exp: Run strip-1 and strip-2 for ELF
targets.
* binutils-all/strip-1.d: New file.
* binutils-all/strip-2.d: Likewise.
* lib/utils-lib.exp (run_dump_test): Support strip.
Diffstat (limited to 'binutils/testsuite/lib')
-rw-r--r-- | binutils/testsuite/lib/utils-lib.exp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/binutils/testsuite/lib/utils-lib.exp b/binutils/testsuite/lib/utils-lib.exp index 3ee7675..b914500 100644 --- a/binutils/testsuite/lib/utils-lib.exp +++ b/binutils/testsuite/lib/utils-lib.exp @@ -279,8 +279,8 @@ proc exe_ext {} { proc run_dump_test { name {extra_options {}} } { global subdir srcdir - global OBJDUMP NM OBJCOPY READELF - global OBJDUMPFLAGS NMFLAGS OBJCOPYFLAGS READELFFLAGS + global OBJDUMP NM OBJCOPY READELF STRIP + global OBJDUMPFLAGS NMFLAGS OBJCOPYFLAGS READELFFLAGS STRIPFLAGS global host_triplet global env global copyfile @@ -362,11 +362,15 @@ proc run_dump_test { name {extra_options {}} } { return } + set destopt "" switch -- $opts(PROG) { ar { set program ar } objcopy { set program objcopy } ranlib { set program ranlib } - strip { set program strip } + strip { + set program strip + set destopt "-o" + } strings { set program strings } default { perror "unrecognized program option $opts(PROG) in $file.d" @@ -470,7 +474,7 @@ proc run_dump_test { name {extra_options {}} } { eval set progopts \$[string toupper $program]FLAGS eval set binary \$[string toupper $program] - set exec_output [binutils_run $binary "$progopts $progopts1 $tempfile ${copyfile}.o"] + set exec_output [binutils_run $binary "$progopts $progopts1 $tempfile $destopt ${copyfile}.o"] if ![string match "" $exec_output] { send_log "$exec_output\n" verbose "$exec_output" |