daily update
[external/binutils.git] / ld / testsuite / ld-elf / elf.exp
index 080d985..b2c196a 100644 (file)
@@ -25,6 +25,7 @@ if ![is_elf_format] {
     return
 }
 
+set old_ldflags $LDFLAGS
 if { [istarget spu*-*-*] } {
     set LDFLAGS "$LDFLAGS --local-store 0:0"
 }
@@ -60,6 +61,8 @@ if { [check_gc_sections_available] } {
     }
 }
 
+set LDFLAGS $old_ldflags
+
 # The following tests require running the executable generated by ld.
 if ![isnative] {
     return