-if { [istarget "*-elf*"]
- || [istarget "*-linux*"]
- || [istarget "sparc*-*-solaris*"]
- || [istarget "mips*-*-irix6*"] } then {
+if { ([istarget "*-*-*elf*"]
+ || [istarget "*-*-linux*"]
+ || [istarget "m6811-*"]
+ || [istarget "m6812-*"]
+ || [istarget "sparc*-*-solaris*"]
+ || [istarget "mips*-*-irix6*"]
+ || [istarget "arm*-*-eabi"])
+ && ![istarget *-*-linux*aout*]
+ && ![istarget *-*-linux*coff*]
+ && ![istarget *-*-linux*oldld*]
+ && ![istarget sh64*-*-linux*]
+} then {
+ set target_machine ""
+ if {[istarget "mips*-*-*"]} then {
+ set target_machine -mips
+ }
+ if {[istarget m32r*-*-*]} then {
+ set target_machine -m32r
+ }
+ if {[istarget "score-*-*"]} then {
+ set target_machine -score
+ }
+ if {[istarget "xtensa*-*-*"]} then {
+ set target_machine -xtensa
+ }
+ if {[istarget "rx-*-*"]} then {
+ set target_machine -rx
+ }
+ if { ([istarget "*arm*-*-*"]
+ || [istarget "xscale*-*-*"]) } {
+
+ if { ([istarget "*-*-*eabi"]
+ || [istarget "*-*-linux-*"]
+ || [istarget "*-*-symbianelf"])} then {
+ set target_machine -armeabi
+ } else {
+ set target_machine -armelf
+ }
+ }