More mips64 toolchain changes. With these changes, the mips64 toolchain
can build a mips64 kernel.
This commit is contained in:
parent
02f1c8b0ef
commit
59b53ad312
8
gnu/dist/binutils/bfd/config.bfd
vendored
8
gnu/dist/binutils/bfd/config.bfd
vendored
@ -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*)
|
||||
|
6
gnu/dist/binutils/ld/configure.tgt
vendored
6
gnu/dist/binutils/ld/configure.tgt
vendored
@ -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"
|
||||
;;
|
||||
|
7
gnu/dist/gcc4/gcc/config.gcc
vendored
7
gnu/dist/gcc4/gcc/config.gcc
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user