+2000-02-09 Jonathan Larmour <jlarmour@redhat.co.uk>
+
+ * gcc.dg/special/ecos.exp: Use -static when testing --gc-sections
+ on native targets
+
2000-02-08 Nathan Sidwell <nathan@acm.org>
* g++.old-deja/g++.other/cast5.C: New test.
if { [ string first "--gc-sections" $ld_output ] >= 0 } {
dg-init
- dg-runtest "$srcdir/$subdir/gcsec-1.c" "-ffunction-sections -fdata-sections -Wl,--gc-sections" ""
+ if [isnative] {
+ dg-runtest "$srcdir/$subdir/gcsec-1.c" "-ffunction-sections -fdata-sections -Wl,--gc-sections -static" ""
+ } else {
+ dg-runtest "$srcdir/$subdir/gcsec-1.c" "-ffunction-sections -fdata-sections -Wl,--gc-sections" ""
+ }
dg-finish
} else {
unsupported "gcsec-1.c"