Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/binutils Switch MIPS from using the "littlemips" an...



details:   https://anonhg.NetBSD.org/src/rev/fa2ff5dc3371
branches:  trunk
changeset: 572626:fa2ff5dc3371
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Jan 09 12:58:00 2005 +0000

description:
Switch MIPS from using the "littlemips" and "bigmips" vectors to the
"tradlittlemips" and "tradbigmips" vectors.

The old vectors are meant for IRIX with it prelink shared library
support, and changes to better support this in binutils 2.15 broke
shared library support under NetBSD.  The "trad" vectors are what 32bit
Linux and OpenBSD also use.

These vectors are also compatible with older NetBSD-built shared
libraries and programs so no flag day is necessary (Yay!).

These changes from Nick Hudson.  Help also from Charles Hannum.

diffstat:

 gnu/dist/binutils/bfd/config.bfd   |  8 ++++----
 gnu/dist/binutils/gas/configure    |  2 +-
 gnu/dist/binutils/gas/configure.in |  2 +-
 gnu/dist/binutils/ld/configure.tgt |  8 ++++----
 4 files changed, 10 insertions(+), 10 deletions(-)

diffs (63 lines):

diff -r f4d675e23418 -r fa2ff5dc3371 gnu/dist/binutils/bfd/config.bfd
--- a/gnu/dist/binutils/bfd/config.bfd  Sun Jan 09 12:43:23 2005 +0000
+++ b/gnu/dist/binutils/bfd/config.bfd  Sun Jan 09 12:58:00 2005 +0000
@@ -769,12 +769,12 @@
     targ_selvecs=ecoff_little_vec
     ;;
   mips*el-*-netbsd*)
-    targ_defvec=bfd_elf32_littlemips_vec
-    targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"
+    targ_defvec=bfd_elf32_tradlittlemips_vec
+    targ_selvecs="bfd_elf32_tradbigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"
     ;;
   mips*-*-netbsd*)
-    targ_defvec=bfd_elf32_bigmips_vec
-    targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"
+    targ_defvec=bfd_elf32_tradbigmips_vec
+    targ_selvecs="bfd_elf32_tradlittlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_big_vec ecoff_little_vec"
     ;;
   mips*-dec-* | mips*el-*-ecoff*)
     targ_defvec=ecoff_little_vec
diff -r f4d675e23418 -r fa2ff5dc3371 gnu/dist/binutils/gas/configure
--- a/gnu/dist/binutils/gas/configure   Sun Jan 09 12:43:23 2005 +0000
+++ b/gnu/dist/binutils/gas/configure   Sun Jan 09 12:58:00 2005 +0000
@@ -4432,7 +4432,7 @@
       mips-*-sysv4*MP* | mips-*-gnu*)  fmt=elf em=tmips ;;
       mips-*-sysv*)                    fmt=ecoff ;;
       mips-*-elf* | mips-*-rtems*)     fmt=elf ;;
-      mips-*-netbsd*)                  fmt=elf ;;
+      mips-*-netbsd*)                  fmt=elf em=tmips ;;
       mips-*-openbsd*)                 fmt=elf ;;
 
       mmix-*-*)                                fmt=elf ;;
diff -r f4d675e23418 -r fa2ff5dc3371 gnu/dist/binutils/gas/configure.in
--- a/gnu/dist/binutils/gas/configure.in        Sun Jan 09 12:43:23 2005 +0000
+++ b/gnu/dist/binutils/gas/configure.in        Sun Jan 09 12:58:00 2005 +0000
@@ -393,7 +393,7 @@
       mips-*-sysv4*MP* | mips-*-gnu*)  fmt=elf em=tmips ;;
       mips-*-sysv*)                    fmt=ecoff ;;
       mips-*-elf* | mips-*-rtems*)     fmt=elf ;;
-      mips-*-netbsd*)                  fmt=elf ;;
+      mips-*-netbsd*)                  fmt=elf em=tmips;;
       mips-*-openbsd*)                 fmt=elf ;;
 
       mmix-*-*)                                fmt=elf ;;
diff -r f4d675e23418 -r fa2ff5dc3371 gnu/dist/binutils/ld/configure.tgt
--- a/gnu/dist/binutils/ld/configure.tgt        Sun Jan 09 12:43:23 2005 +0000
+++ b/gnu/dist/binutils/ld/configure.tgt        Sun Jan 09 12:58:00 2005 +0000
@@ -412,11 +412,11 @@
 mips*-sgi-irix*)       targ_emul=mipsbig ;;
 mips*el-*-ecoff*)      targ_emul=mipsidtl ;;
 mips*-*-ecoff*)                targ_emul=mipsidt ;;
-mips*el-*-netbsd*)     targ_emul=elf32lmip
-                       targ_extra_emuls="elf32bmip"
+mips*el-*-netbsd*)     targ_emul=elf32ltsmip
+                       targ_extra_emuls="elf32btsmip"
                        ;;
-mips*-*-netbsd*)       targ_emul=elf32bmip
-                       targ_extra_emuls="elf32lmip elf64bmip"
+mips*-*-netbsd*)       targ_emul=elf32btsmip
+                       targ_extra_emuls="elf32ltsmip elf64bmip"
                        ;;
 mips*-*-bsd*)          targ_emul=mipsbig ;;
 mips*vr4300el-*-elf*)  targ_emul=elf32l4300 ;;



Home | Main Index | Thread Index | Old Index