# For now be paranoid and assume that if ELF is not mentioned
# in the target string, then the target is not an ELF based port.
-if ![istarget "*-*elf"] then {
+if { ![istarget *-*-elf*] \
+ && ![istarget *-*-linux*] \
+ && ![istarget i?86-*-sysv4*] \
+ && ![istarget i?86-*-unixware] \
+ && ![istarget mips*-*-irix5*] \
+ && ![istarget mips*-*-irix6*] \
+ && ![istarget powerpc-*-sysv4*] \
+ && ![istarget sparc*-*-solaris2*] } {
+ verbose "$READELF is only intended for ELF targets" 2
+ return
+}
+
+if { [istarget *-*-linuxoldld*] \
+ || [istarget *-*-linuxaout*] } {
verbose "$READELF is only intended for ELF targets" 2
return
}
# The xfail targets here do not default to DWARF2 format debug information
# The symptom is that the output of 'readelf -wi' is empty.
-readelf_test -wi $tempfile readelf.wi {v850*-*-* cris-*-*}
+readelf_test -wi $tempfile readelf.wi {v850*-*-* cris-*-* *-*-linux*}