* testsuite/lib/ld-lib.exp (is_generic_elf): New, extracted from..
* testsuite/ld-elf/elf.exp: ..here.
+2016-10-07 Alan Modra <amodra@gmail.com>
+
+ * testsuite/lib/ld-lib.exp (is_generic_elf): New, extracted from..
+ * testsuite/ld-elf/elf.exp: ..here.
+
2016-10-06 Ludovic Courtès <ludo@gnu.org>
* emulparams/elf32bmipn32-defs.sh: Shift quote of
# Targets using the generic linker backend don't support generating
# an import library.
set xfail_implib ""
-if { [istarget "d30v-*-*"]
- || [istarget "dlx-*-*"]
- || [istarget "fr30-*-*"]
- || ([istarget "frv-*-*"] && ![istarget "frv-*-linux*"])
- || [istarget "ft32-*-*"]
- || [istarget "i860-*-*"]
- || [istarget "i960-*-*"]
- || [istarget "iq2000-*-*"]
- || [istarget "mn10200-*-*"]
- || [istarget "moxie-*-*"]
- || [istarget "msp430-*-*"]
- || [istarget "mt-*-*"]
- || [istarget "pj*-*-*"] } {
+if [is_generic_elf] {
set xfail_implib "*-*-*"
}
return 0
}
+# Return true if target uses genelf.em (assuming it is ELF).
+proc is_generic_elf { } {
+ if { [istarget "d30v-*-*"]
+ || [istarget "dlx-*-*"]
+ || [istarget "fr30-*-*"]
+ || ([istarget "frv-*-*"] && ![istarget "frv-*-linux*"])
+ || [istarget "ft32-*-*"]
+ || [istarget "i860-*-*"]
+ || [istarget "i960-*-*"]
+ || [istarget "iq2000-*-*"]
+ || [istarget "mn10200-*-*"]
+ || [istarget "moxie-*-*"]
+ || [istarget "msp430-*-*"]
+ || [istarget "mt-*-*"]
+ || [istarget "pj*-*-*"] } {
+ return 1;
+ }
+ return 0;
+}
+
# Returns true if the target ld supports the plugin API.
proc check_plugin_api_available { } {
global plugin_api_available_saved