aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/config/default.exp
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/config/default.exp')
-rw-r--r--ld/testsuite/config/default.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/config/default.exp b/ld/testsuite/config/default.exp
index 7998f4e..64b78cd 100644
--- a/ld/testsuite/config/default.exp
+++ b/ld/testsuite/config/default.exp
@@ -358,7 +358,7 @@ if { ![info exists NOCF_PROTECTION_CFLAGS] } then {
append flags " [board_info [target_info name] ldflags]"
}
- set basename "tmpdir/nopie[pid]"
+ set basename "tmpdir/available[pid]"
set src ${basename}.c
set output ${basename}
set f [open $src "w"]
@@ -367,12 +367,12 @@ if { ![info exists NOCF_PROTECTION_CFLAGS] } then {
if [is_remote host] {
set src [remote_download host $src]
}
- set nopie_available [run_host_cmd_yesno "$CC" "$flags -fcf-protection=none $src -o $output"]
+ set available [run_host_cmd_yesno "$CC" "$flags -fcf-protection=none $src -o $output"]
remote_file host delete $src
remote_file host delete $output
file delete $src
- if { $nopie_available == 1 } then {
+ if { $available == 1 } then {
set NOCF_PROTECTION_CFLAGS "-fcf-protection=none"
} else {
set NOCF_PROTECTION_CFLAGS ""