All FreeBSD targets are ELF except i?86-*-freebsd\[12\].*.

FreeBSD has used ELF for all targets for more than 15 years. Add
*-*-freebsd* except i?86-*-freebsd\[12\].* to is_elf_format. Update
is_aout_format to include a trailing dot, so that it does not match
freebsd-10.0 and later.
This commit is contained in:
Ed Maste 2015-05-25 12:12:12 -04:00 committed by Alan Modra
parent f6bb7db35d
commit 7e16ef3474
2 changed files with 12 additions and 1 deletions

View file

@ -36,12 +36,17 @@ proc is_elf_format {} {
&& ![istarget tic6x*-*-uclinux*]
&& ![istarget *-*-irix5*]
&& ![istarget *-*-irix6*]
&& ![istarget *-*-freebsd*]
&& ![istarget *-*-netbsd*]
&& ![istarget *-*-openbsd*]
&& ![istarget *-*-solaris2*] } {
return 0
}
if { [istarget i?86-*-freebsd\[12\].*] } {
return 0
}
if { [istarget *-*-linux*aout*]
|| [istarget *-*-linux*ecoff*]
|| [istarget *-*-linux*oldld*]
@ -92,7 +97,7 @@ proc is_aout_format {} {
|| [istarget arm-*-netbsd*]
|| [istarget arm-*-openbsd*]
|| [istarget arm-*-riscix*]
|| [istarget i?86-*-freebsd\[12\]*]
|| [istarget i?86-*-freebsd\[12\].*]
|| [istarget i?86-*-netbsd*]
|| [istarget i?86-*-openbsd\[0-2\]*]
|| [istarget i?86-*-openbsd3.\[0-2\]*]