Update year range in copyright notice of binutils files
[deliverable/binutils-gdb.git] / ld / testsuite / ld-elf / tls.exp
index 9d64d6c19f4877ca697f989f9d9ab95e642b7a71..1b26f8b24e18a28a90effc32f551cc09df2eaf55 100644 (file)
@@ -1,5 +1,5 @@
 # Expect script for TLS tests.
-#   Copyright (C) 2017 Free Software Foundation, Inc.
+#   Copyright (C) 2017-2019 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*] } {
     return
 }
 
-if { [istarget *-*-linux*aout*]
-     || [istarget *-*-linux*oldld*] } {
-    return
-}
-
 # Check to see if the C compiler works.
 if { [which $CC] == 0 } {
     return
 }
 
+# This target requires extra GAS options when building PIC/PIE code.
+set AFLAGS_PIC ""
+if [istarget "sparc*-*-*"] {
+    append AFLAGS_PIC " -K PIC"
+}
+
 run_ld_link_tests [list \
     [list \
        "Build pr22263-1" \
-       "-pie -e _start" \
-       "" \
+       "-pie -e _start -z text" \
        "" \
+       "$AFLAGS_PIC" \
        { pr22263-1a.c pr22263-1b.c } \
        {{readelf -r pr22263-1.rd}} \
        "pr22263-1" \
This page took 0.025896 seconds and 4 git commands to generate.