# Expect script for linker support of size relocations.
#
-# Copyright (C) 2013-2017 Free Software Foundation, Inc.
+# Copyright (C) 2013-2020 Free Software Foundation, Inc.
#
# This file is part of the GNU Binutils.
#
#
-# Size relications have only been implemented for the ix86 and x86_64,
+# Size relocations have only been implemented for the ix86 and x86_64,
# so far.
if {!(([istarget "i?86-*-*"]
|| [istarget "x86_64-*-*"])
&& ([istarget "*-*-elf*"]
|| [istarget "*-*-nacl*"]
- || (([istarget "*-*-linux*"]
- || [istarget "*-*-gnu*"])
- && ![istarget "*-*-*aout*"]
- && ![istarget "*-*-*oldld*"]))) } {
+ || [istarget "*-*-linux*"]
+ || [istarget "*-*-gnu*"])) } {
verbose "Size relocations tests not run - no target support"
return
}
}
# We need a working compiler.
-if { [which $CC] == 0 } {
+if { ![check_compiler_available] } {
verbose "Native size relocation tests not run - no compiler available"
return
}
"size-3.out" \
] \
[list \
- {"Run size-3e"
- "-Wl,--no-as-needed tmpdir/libsize-3c.so" ""
- {size-3.c} "size-3e" "size-3.out"}
+ {"Run size-3e" \
+ "-Wl,--no-as-needed tmpdir/libsize-3c.so" "" \
+ {size-3.c} "size-3e" "size-3.out"} \
] \
[list \
"Run size-4a" \