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 9b624e4508982079eda4e50212aa16130b3f8145..51647a51e2d5023cf29532dfc79fa132313d2d55 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 8461e790f8f483b30baaa5c27a599d9b49c6a179..1974a385d6b3a09c15448fcb746dfebdfc65d66b 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 87d6937a6a605b260e9e30696427c37491a73c3b..7ecca11c51f1478adcaf9b3d10bec7a9986444b5 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 a1441233475cecb9135f460d57dc1bd72bdc0c4b..6217f65f15ede30e73db59fbde420dcf409173a4 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 ;;