diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-12-08 19:55:05 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-12-08 19:55:05 +0000 |
commit | ef1ad8ab8e90d39ea3a30a6e25c78f084765b2c3 (patch) | |
tree | 1b7ba768bd12f4efa876567191fd6c138f03297b /binutils/testsuite/binutils-all/objcopy.exp | |
parent | d8c139e122f75a3afb5a39c3fad29b60afe2f74a (diff) | |
download | gdb-ef1ad8ab8e90d39ea3a30a6e25c78f084765b2c3.zip gdb-ef1ad8ab8e90d39ea3a30a6e25c78f084765b2c3.tar.gz gdb-ef1ad8ab8e90d39ea3a30a6e25c78f084765b2c3.tar.bz2 |
* binutils-all/objdump.exp (cpus_expected): New variable, taken from objdump -i
test, added ns32k, sorted.
(objdump -i, -f tests): Use $cpus_expected.
* binutils-all/objcopy.exp: For simple-copy test, expect failure for sh-coff.
Diffstat (limited to 'binutils/testsuite/binutils-all/objcopy.exp')
-rw-r--r-- | binutils/testsuite/binutils-all/objcopy.exp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/binutils/testsuite/binutils-all/objcopy.exp b/binutils/testsuite/binutils-all/objcopy.exp index 17d70ff..b2032d0 100644 --- a/binutils/testsuite/binutils-all/objcopy.exp +++ b/binutils/testsuite/binutils-all/objcopy.exp @@ -32,6 +32,11 @@ if {![binutils_assemble $AS $srcdir$subdir/bintest.s tmpdir/bintest.o]} then { # Test that objcopy does not modify a file when copying it. +# Since some versions of the assembler don't use BFD to generate the +# object file, we shouldn't assume that the version written by BFD will +# be bit-for-bit identical. It need merely be functionally identical. +setup_xfail "sh-*-coff" + set got [binutils_run $OBJCOPY "$OBJCOPYFLAGS tmpdir/bintest.o tmpdir/copy.o"] if ![string match "" $got] then { @@ -203,7 +208,7 @@ if {$low == "" || $origstart == ""} then { fail "objcopy --adjust-section-vma +" } else { set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -h tmpdir/copy.srec"] - set want "file format srec.*vma\[ \]*(\[0-9a-fA-F\]+)" + set want "file format srec.*SECTION\[ \]*0\[^\n\r\]*vma\[ \]*(\[0-9a-fA-F\]+)" if ![regexp $want $got all vma] then { fail "objcopy --adjust-section-vma +" } else { @@ -222,7 +227,7 @@ if {$low == "" || $origstart == ""} then { fail "objcopy --adjust-section-vma =" } else { set got [binutils_run $OBJDUMP "$OBJDUMPFLAGS -h tmpdir/copy.srec"] - set want "file format srec.*vma\[ \]*(\[0-9a-fA-F\]+)" + set want "file format srec.*SECTION\[ \]*0\[^\n\r\]*vma\[ \]*(\[0-9a-fA-F\]+)" if ![regexp $want $got all vma] then { fail "objcopy --adjust-section-vma =" } else { |