# If the linker has been configured with --enable-default-execstack=no then
# this proc should always return 0.
- if { [file exists $base_dir/config.status] } {
- set status [remote_exec host grep "enable-default-execstack=no" $base_dir/config.status]
+ set f $base_dir/config.h
+ set s {DEFAULT_LD_EXECSTACK\ 0}
+ if { [file exists $f] } {
+ set status [remote_exec host grep $s $f]
if { [lindex $status 0] == 0 } {
return 0
} else {
- verbose -log "$base_dir/config.status does not contain enable-default-execstack=no"
+ verbose -log "$f does not contain $s"
}
} else {
- verbose -log "there is no file $base_dir/config.status"
+ verbose -log "there is no file $f"
}
if { [istarget "aarch64*-*-*"]