Do not include sh64 support into sh*-netbsdelf* targets unless

specifically requested with sh5* or sh64*.
This commit is contained in:
uwe 2007-04-20 11:09:00 +00:00
parent 9a3c4f612c
commit 119f6e61f7
3 changed files with 18 additions and 2 deletions

View File

@ -1139,14 +1139,14 @@ case "${targ}" in
targ_defvec=bfd_elf32_shlnbsd_vec
targ_selvecs="bfd_elf32_shnbsd_vec shcoff_vec shlcoff_vec"
#ifdef BFD64
targ_selvecs="${targ_selvecs} bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec"
targ64_selvecs="bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec"
#endif
;;
sh*-*-netbsdelf*)
targ_defvec=bfd_elf32_shnbsd_vec
targ_selvecs="bfd_elf32_shlnbsd_vec shcoff_vec shlcoff_vec"
#ifdef BFD64
targ_selvecs="${targ_selvecs} bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec"
targ64_selvecs="bfd_elf32_sh64lnbsd_vec bfd_elf32_sh64nbsd_vec bfd_elf64_sh64lnbsd_vec bfd_elf64_sh64nbsd_vec"
#endif
;;

View File

@ -8645,6 +8645,14 @@ if test x${all_targets} = xfalse ; then
# specified, as in sh3-elf, sh3b-linux-gnu, etc.
# Include it just for ELF targets, since the SH5 bfd:s are ELF only.
for t in $target $canon_targets; do
# For NetBSD we do NOT want SH5 support unless sh5 or sh64
# is specified
case $t in
sh5*-* | sh64*-*) # let the case below handle it
;;
sh*-*-netbsd* | sh*l*-*-netbsd*)
continue ;;
esac
case $t in
all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
sh-*-linux* | shl-*-linux*)

View File

@ -222,6 +222,14 @@ if test x${all_targets} = xfalse ; then
# specified, as in sh3-elf, sh3b-linux-gnu, etc.
# Include it just for ELF targets, since the SH5 bfd:s are ELF only.
for t in $target $canon_targets; do
# For NetBSD we do NOT want SH5 support unless sh5 or sh64
# is specified
case $t in
sh5*-* | sh64*-*) # let the case below handle it
;;
sh*-*-netbsd* | sh*l*-*-netbsd*)
continue ;;
esac
case $t in
all | sh5*-* | sh64*-* | sh-*-*elf* | shl*-*-*elf* | \
sh-*-linux* | shl-*-linux*)