X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-elf%2Fcompress.exp;h=8b55f86ea9a0b580cd6c7940b3dd04e552bfdf73;hb=e2c8dab6ae8654a928ab9364d5090781a4a6f62f;hp=040bb52ad21bc18cd96cd6d518fa596c673af8b1;hpb=a0a8a9340dc79116297627a0884c6a01543e4b34;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/testsuite/ld-elf/compress.exp b/ld/testsuite/ld-elf/compress.exp index 040bb52ad2..8b55f86ea9 100644 --- a/ld/testsuite/ld-elf/compress.exp +++ b/ld/testsuite/ld-elf/compress.exp @@ -1,5 +1,5 @@ # Expect script for ELF compressed debug section tests. -# Copyright (C) 2010-2018 Free Software Foundation, Inc. +# Copyright (C) 2010-2020 Free Software Foundation, Inc. # # This file is part of the GNU Binutils. # @@ -32,11 +32,10 @@ if ![check_shared_lib_support] { } # Check if compiler works -if { [which $CC] == 0 } { +if { ![check_compiler_available] } { return } -global as if { ![ld_assemble $as "--compress-debug-sections $srcdir/$subdir/empty.s" tmpdir/empty.o ] } { fail "linker compressed debug sections" } @@ -124,8 +123,6 @@ if { [catch {exec cmp tmpdir/libfoo.so tmpdir/libfoozlib.so}] } then { pass "$test_name" } -global READELF - set test_name "Link -r with zlib compressed debug output" set test zlibbegin send_log "$READELF -S -W tmpdir/$test.o > tmpdir/$test.out\n"