Do not include sh64 support into sh*-netbsdelf* targets unless
specifically requested with sh5* or sh64*.
This commit is contained in:
parent
0c5111b125
commit
7ec58a9280
|
@ -1166,14 +1166,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
|
||||
;;
|
||||
|
||||
|
|
|
@ -8854,6 +8854,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*)
|
||||
|
|
|
@ -206,12 +206,20 @@ 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*)
|
||||
ta="$ta sh64-dis.lo sh64-opc.lo"
|
||||
archdefs="$archdefs -DINCLUDE_SHMEDIA"
|
||||
break;;
|
||||
break ;;
|
||||
esac;
|
||||
done
|
||||
ta="$ta sh-dis.lo" ;;
|
||||
|
|
Loading…
Reference in New Issue