X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-elf%2Ftls.exp;h=380d6505a8438e8bec8457874df8378fb9b4a72b;hb=37a141bfed4dd3c33d77c15dfde00e4b4f5b24c7;hp=dd2407126271acd9824048e6d2d3044077129513;hpb=354bac403e9a19bbbfb676d854db5f11f0e84c27;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/testsuite/ld-elf/tls.exp b/ld/testsuite/ld-elf/tls.exp index dd24071262..380d6505a8 100644 --- a/ld/testsuite/ld-elf/tls.exp +++ b/ld/testsuite/ld-elf/tls.exp @@ -1,5 +1,5 @@ # Expect script for TLS tests. -# Copyright (C) 2017 Free Software Foundation, Inc. +# Copyright (C) 2017-2020 Free Software Foundation, Inc. # # This file is part of the GNU Binutils. # @@ -22,19 +22,21 @@ # 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*] } { +# Check to see if the C compiler works. +if { ![check_compiler_available] } { 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 \ @@ -42,7 +44,7 @@ run_ld_link_tests [list \ "Build pr22263-1" \ "-pie -e _start -z text" \ "" \ - "" \ + "$AFLAGS_PIC" \ { pr22263-1a.c pr22263-1b.c } \ {{readelf -r pr22263-1.rd}} \ "pr22263-1" \