]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - ld/testsuite/ld-elf/tls.exp
Update year range in copyright notice of binutils files
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-elf / tls.exp
index 15c382fcb4f9869d25b01811745c6475c787daee..1351a274cc4d753ee947dc3810f0dcbb43110a5f 100644 (file)
@@ -1,5 +1,5 @@
 # Expect script for TLS tests.
-#   Copyright (C) 2017-2020 Free Software Foundation, Inc.
+#   Copyright (C) 2017-2021 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
 
 # Make sure that binutils can correctly handle TLS.
 
-if { ![istarget *-*-linux*]
-     && ![istarget arm*-*-uclinuxfdpiceabi]
-     && ![istarget *-*-nacl*]
-     && ![istarget *-*-gnu*] } {
+if { !([istarget *-*-linux*]
+       || [istarget arm*-*-uclinuxfdpiceabi]
+       || [istarget *-*-nacl*]
+       || [istarget *-*-gnu*]) || [istarget *ecoff] } then {
     return
 }
 
@@ -36,7 +36,7 @@ if { ![check_compiler_available] } {
 # This target requires extra GAS options when building PIC/PIE code.
 set AFLAGS_PIC ""
 if [istarget "sparc*-*-*"] {
-    append AFLAGS_PIC " -K PIC"
+    append AFLAGS_PIC " -K PIC -Av9"
 }
 
 run_ld_link_tests [list \
@@ -48,6 +48,6 @@ run_ld_link_tests [list \
        { pr22263-1a.c pr22263-1b.c } \
        {{readelf -r pr22263-1.rd}} \
        "pr22263-1" \
-       "-fPIE -O2 $NOSANTIZE_CFLAGS" \
+       "-fPIE -O2 $NOSANITIZE_CFLAGS" \
     ] \
 ]