X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-elf%2Felf.exp;fp=ld%2Ftestsuite%2Fld-elf%2Felf.exp;h=a94e96d8a4f04601181be6b264ccc5f65c89f253;hp=20e998077d1823a62e1021aaf02d8bcd53c6dcdc;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 20e9980..a94e96d 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -1,5 +1,5 @@ # Expect script for various ELF tests. -# Copyright 2002, 2003, 2005, 2007 Free Software Foundation, Inc. +# Copyright 2002, 2003, 2005, 2007, 2009 Free Software Foundation, Inc. # # This file is part of the GNU Binutils. # @@ -25,10 +25,15 @@ if ![is_elf_format] { return } +set old_ldflags $LDFLAGS if { [istarget spu*-*-*] } { set LDFLAGS "$LDFLAGS --local-store 0:0" } +if { [is_remote host] } then { + remote_download host merge.ld +} + set test_list [lsort [glob -nocomplain $srcdir/$subdir/*.d]] foreach t $test_list { # We need to strip the ".d", but can leave the dirname. @@ -49,6 +54,15 @@ if { [istarget *-*-linux*] } { } } +if { [check_gc_sections_available] } { + run_ld_link_tests { + {"--gc-sections on tls variable" + "--gc-section" "" {tls_gc.s} {} "tls_gc"} + } +} + +set LDFLAGS $old_ldflags + # The following tests require running the executable generated by ld. if ![isnative] { return