diff options
Diffstat (limited to 'binutils-2.22/binutils/testsuite/binutils-all/compress.exp')
-rw-r--r-- | binutils-2.22/binutils/testsuite/binutils-all/compress.exp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/binutils-2.22/binutils/testsuite/binutils-all/compress.exp b/binutils-2.22/binutils/testsuite/binutils-all/compress.exp index 91ed7e4..3b0b485 100644 --- a/binutils-2.22/binutils/testsuite/binutils-all/compress.exp +++ b/binutils-2.22/binutils/testsuite/binutils-all/compress.exp @@ -133,3 +133,32 @@ if ![string match "" $got] then { pass "$testname" } } + +set testfile tmpdir/dw2-emty.o + +if { ![binutils_assemble_flags $srcdir/$subdir/dw2-empty.S $testfile --nocompress-debug-sections] } then { + unsupported "compressed debug sections" + return +} + +set testname "objcopy compress empty debug sections" +set got [binutils_run $OBJCOPY "--compress-debug-sections $testfile ${copyfile}.o"] +if ![string match "" $got] then { + fail "objcopy ($testname)" +} else { + send_log "cmp $testfile ${copyfile}.o\n" + verbose "cmp $testfile ${copyfile}.o" + set src1 ${testfile} + set src2 ${copyfile}.o + set status [remote_exec build cmp "${src1} ${src2}"] + set exec_output [lindex $status 1] + set exec_output [prune_warnings $exec_output] + + if [string match "" $exec_output] then { + pass "objcopy ($testname)" + } else { + send_log "$exec_output\n" + verbose "$exec_output" 1 + fail "objcopy ($testname)" + } +} |