Enable 64bit emulations for Linux/mips if 64bit BFD is selected.
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 31 Jul 2002 22:26:53 +0000 (22:26 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 31 Jul 2002 22:26:53 +0000 (22:26 +0000)
bfd/ChangeLog
bfd/config.bfd
ld/ChangeLog
ld/configure.tgt

index 9b624e4..51647a5 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-31  H.J. Lu <hjl@gnu.org>
+
+       * config.bfd: Add n32 vectors to 32bit Linux/mips if 64bit BFD
+       is selected.
+
 2002-07-31  Jakub Jelinek  <jakub@redhat.com>
 
        * elf32-i386.c (elf_i386_copy_indirect_symbol): Swap tls_type
index 8461e79..1974a38 100644 (file)
@@ -759,12 +759,12 @@ case "${targ}" in
   mips*el-*-linux*)
     targ_defvec=bfd_elf32_tradlittlemips_vec
     targ_selvecs="bfd_elf32_tradbigmips_vec ecoff_little_vec ecoff_big_vec"
-    targ64_selvecs="bfd_elf64_tradlittlemips_vec bfd_elf64_tradbigmips_vec"
+    targ64_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec"
     ;;
   mips*-*-linux*)
     targ_defvec=bfd_elf32_tradbigmips_vec
     targ_selvecs="bfd_elf32_tradlittlemips_vec ecoff_big_vec ecoff_little_vec"
-    targ64_selvecs="bfd_elf64_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
+    targ64_selvecs="bfd_elf32_ntradbigmips_vec bfd_elf64_tradbigmips_vec bfd_elf32_ntradlittlemips_vec bfd_elf64_tradlittlemips_vec"
     ;;
 #ifdef BFD64
   mmix-*-*)
index 87d6937..7ecca11 100644 (file)
@@ -1,3 +1,8 @@
+2002-07-31  H.J. Lu <hjl@gnu.org>
+
+       * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
+       if 64bit BFD is selected.
+
 2002-07-31  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
 
        * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
index a144123..6217f65 100644 (file)
@@ -396,10 +396,16 @@ mips64*-*-linux-gnu*)     targ_emul=elf32btsmipn32
                        targ_extra_emuls="elf32ltsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip"
                        ;;
 mips*el-*-linux-gnu*)  targ_emul=elf32ltsmip
-                       targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip"
+                       targ_extra_emuls="elf32btsmip"
+                       if test x${want64} = xtrue; then
+                         targ_extra_emuls="$targ_extra_emuls elf32ltsmipn32 elf64ltsmip elf32btsmipn32 elf64btsmip"
+                       fi
                        ;;
 mips*-*-linux-gnu*)    targ_emul=elf32btsmip
-                       targ_extra_emuls="elf32ltsmip elf64btsmip elf64ltsmip"
+                       targ_extra_emuls="elf32ltsmip"
+                       if test x${want64} = xtrue; then
+                         targ_extra_emuls="$targ_extra_emuls elf32btsmipn32 elf64btsmip elf32ltsmipn32 elf64ltsmip"
+                       fi
                        ;;
 mips*-*-lnews*)                targ_emul=mipslnews ;;
 mips*-*-sysv4*)         targ_emul=elf32btsmip ;;