ld testsuite: change unresolved to unsupported/fail
[binutils-gdb.git] / ld / testsuite / ld-scripts / sizeof.exp
index 4381573f8994112543b474182517840bd06a240b..6d306c8dcf7685aac8843b03a25b907f4c0aa4a5 100644 (file)
@@ -1,7 +1,7 @@
 # Test SIZEOF in a linker script.
 # By Ian Lance Taylor, Cygnus Support
 # Based on a bug report from anders.blomdell@control.lth.se.
-#   Copyright (C) 2001-2020 Free Software Foundation, Inc.
+#   Copyright (C) 2001-2021 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
 set testname "SIZEOF"
 
 if ![ld_assemble $as $srcdir/$subdir/sizeof.s tmpdir/sizeof.o] {
-    unresolved $testname
+    unsupported $testname
     return
 }
 
-if ![ld_link $ld tmpdir/sizeof "-T $srcdir/$subdir/sizeof.t tmpdir/sizeof.o"] {
+if ![ld_link $ld tmpdir/sizeof "$LDFLAGS -T $srcdir/$subdir/sizeof.t tmpdir/sizeof.o"] {
     fail $testname
     return
 }