More mips64 toolchain changes. With these changes, the mips64 toolchain

can build a mips64 kernel.
This commit is contained in:
matt 2006-08-26 20:01:29 +00:00
parent 02f1c8b0ef
commit 59b53ad312
3 changed files with 17 additions and 4 deletions

View File

@ -810,12 +810,12 @@ case "${targ}" in
;;
#ifdef BFD64
mips64*el-*-netbsd*)
targ_defvec=bfd_elf64_littlemips_vec
targ_selvecs="bfd_elf64_bigmips_vec bfd_elf32_nbigmips_vec bfd_elf32_nlittlemips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec ecoff_little_vec ecoff_big_vec"
targ_defvec=bfd_elf64_tradlittlemips_vec
targ_selvecs="bfd_elf64_tradbigmips_vec bfd_elf32_nbigmips_vec bfd_elf32_nlittlemips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec ecoff_little_vec ecoff_big_vec"
;;
mips64*-*-netbsd*)
targ_defvec=bfd_elf64_bigmips_vec
targ_selvecs="bfd_elf64_littlemips_vec bfd_elf32_nbigmips_vec bfd_elf32_nlittlemips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec ecoff_little_vec ecoff_big_vec"
targ_defvec=bfd_elf64_tradbigmips_vec
targ_selvecs="bfd_elf64_tradlittlemips_vec bfd_elf32_nbigmips_vec bfd_elf32_nlittlemips_vec bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec ecoff_little_vec ecoff_big_vec"
;;
#endif
mips*el-*-netbsd*)

View File

@ -419,6 +419,12 @@ mips*-sgi-irix6*) targ_emul=elf32bmipn32
mips*-sgi-irix*) targ_emul=mipsbig ;;
mips*el-*-ecoff*) targ_emul=mipsidtl ;;
mips*-*-ecoff*) targ_emul=mipsidt ;;
mips64*el-*-netbsd*) targ_emul=elf64ltsmip
targ_extra_emuls="elf64btsmip elf32ltsmipn32 elf32ltsmip elf32btsmipn32 elf32btsmip"
;;
mips64*-*-netbsd*) targ_emul=elf64btsmip
targ_extra_emuls="elf64ltsmip elf32btsmipn32 elf32btsmip elf32ltsmipn32 elf32ltsmip"
;;
mips*el-*-netbsd*) targ_emul=elf32ltsmip
targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip"
;;

View File

@ -1489,6 +1489,13 @@ mips-sgi-irix[56]*)
# fi
use_fixproto=yes
;;
mips64*-*-netbsd*) # NetBSD/mips64, either endian.
target_cpu_default="MASK_ABICALLS|MASK_64BIT|MASK_FLOAT64"
tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"
# tm_defines="${tm_defines} MIPS_ISA_DEFAULT=64"
tm_defines="${tm_defines} MIPS_ABI_DEFAULT=ABI_64"
# tm_defines="${tm_defines} MIPS_CPU_STRING_DEFAULT=\\\"mips64\\\""
;;
mips*-*-netbsd*) # NetBSD/mips, either endian.
target_cpu_default="MASK_ABICALLS"
tm_file="elfos.h ${tm_file} mips/elf.h netbsd.h netbsd-elf.h mips/netbsd.h"