x86: Correct noavx512_vp2intersect
[deliverable/binutils-gdb.git] / binutils / testsuite / lib / binutils-common.exp
index 08dcc4d739c070b29e36193b75dbc34c118884fb..b9e3c6d8174168226a044d532b760e22ef8f7d8f 100644 (file)
@@ -291,6 +291,23 @@ proc check_shared_lib_support { } {
     return $shared_available_saved
 }
 
+# Returns true if -pie is supported on the target
+
+proc check_pie_support { } {
+    global pie_available_saved
+    global ld
+
+    if {![info exists pie_available_saved]} {
+       set ld_output [remote_exec host $ld "-pie"]
+       if { [ string first "not supported" $ld_output ] >= 0 } {
+           set pie_available_saved 0
+       } else {
+           set pie_available_saved 1
+       }
+    }
+    return $pie_available_saved
+}
+
 # Compare two files line-by-line.  FILE_1 is the actual output and FILE_2
 # is the expected output.  Ignore blank lines in either file.
 #
This page took 0.023343 seconds and 4 git commands to generate.