Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/binutils Add a mipsn64 target



details:   https://anonhg.NetBSD.org/src/rev/2951be42fc96
branches:  trunk
changeset: 982772:2951be42fc96
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Apr 25 23:35:52 2021 +0000

description:
Add a mipsn64 target

diffstat:

 external/gpl3/binutils/dist/config.sub       |  1 +
 external/gpl3/binutils/dist/gas/configure    |  2 +-
 external/gpl3/binutils/dist/gas/configure.ac |  2 +-
 external/gpl3/binutils/dist/ld/configure.tgt |  8 ++++++++
 external/gpl3/binutils/usr.bin/ld/Makefile   |  5 +++--
 5 files changed, 14 insertions(+), 4 deletions(-)

diffs (76 lines):

diff -r 1fdc477a14d3 -r 2951be42fc96 external/gpl3/binutils/dist/config.sub
--- a/external/gpl3/binutils/dist/config.sub    Sun Apr 25 23:24:00 2021 +0000
+++ b/external/gpl3/binutils/dist/config.sub    Sun Apr 25 23:35:52 2021 +0000
@@ -1191,6 +1191,7 @@
                        | mips | mipsbe | mipseb | mipsel | mipsle \
                        | mips16 \
                        | mips64 | mips64eb | mips64el \
+                       | mipsn64 | mipsn64eb | mipsn64el \
                        | mips64octeon | mips64octeonel \
                        | mips64orion | mips64orionel \
                        | mips64r5900 | mips64r5900el \
diff -r 1fdc477a14d3 -r 2951be42fc96 external/gpl3/binutils/dist/gas/configure
--- a/external/gpl3/binutils/dist/gas/configure Sun Apr 25 23:24:00 2021 +0000
+++ b/external/gpl3/binutils/dist/gas/configure Sun Apr 25 23:35:52 2021 +0000
@@ -12689,7 +12689,7 @@
       mips)
        # Set mips_cpu to the name of the default CPU.
        case ${target_cpu} in
-         mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
+         mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el | mips64eb | mipsn64el | mipsn64eb)
            mips_cpu=from-abi
            ;;
          mipsisa32 | mipsisa32el)
diff -r 1fdc477a14d3 -r 2951be42fc96 external/gpl3/binutils/dist/gas/configure.ac
--- a/external/gpl3/binutils/dist/gas/configure.ac      Sun Apr 25 23:24:00 2021 +0000
+++ b/external/gpl3/binutils/dist/gas/configure.ac      Sun Apr 25 23:35:52 2021 +0000
@@ -292,7 +292,7 @@
       mips)
        # Set mips_cpu to the name of the default CPU.
        case ${target_cpu} in
-         mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el)
+         mips | mipsbe | mipseb | mipsle | mipsel | mips64 | mips64el | mips64eb | mipsn64el | mipsn64eb )
            mips_cpu=from-abi
            ;;
          mipsisa32 | mipsisa32el)
diff -r 1fdc477a14d3 -r 2951be42fc96 external/gpl3/binutils/dist/ld/configure.tgt
--- a/external/gpl3/binutils/dist/ld/configure.tgt      Sun Apr 25 23:24:00 2021 +0000
+++ b/external/gpl3/binutils/dist/ld/configure.tgt      Sun Apr 25 23:35:52 2021 +0000
@@ -506,10 +506,18 @@
 mips64*el-*-netbsd*)   targ_emul=elf32ltsmipn32         
                        targ_extra_emuls="elf64btsmip elf64ltsmip elf32ltsmip elf32btsmipn32 elf32btsmip"        
                        targ_extra_libpath=$targ_extra_emuls
+                       ;;
+mipsn64*el-*-netbsd*)  targ_emul=elf64ltsmip
+                       targ_extra_emuls="elf64btsmip elf64ltsmip elf32ltsmip elf32btsmip elf32btsmipn32 elf32ltsmip32"
+                       targ_extra_libpath=$targ_extra_emuls
                        ;;       
 mips64*-*-netbsd*)     targ_emul=elf32btsmipn32
                        targ_extra_emuls="elf64ltsmip elf64btsmip elf32btsmip elf32ltsmipn32 elf32ltsmip"
                        targ_extra_libpath=$targ_extra_emuls
+                       ;;
+mipsn64*-*-netbsd*)    targ_emul=elf64btsmip
+                       targ_extra_emuls="elf64ltsmip elf64btsmip elf32ltsmip elf32btsmip elf32ltsmipn32 elf32btsmipn32"
+                       targ_extra_libpath=$targ_extra_emuls
                        ;;
 mips*el-*-netbsd*)     targ_emul=elf32ltsmip
                        targ_extra_emuls="elf32btsmip elf64ltsmip elf64btsmip"
diff -r 1fdc477a14d3 -r 2951be42fc96 external/gpl3/binutils/usr.bin/ld/Makefile
--- a/external/gpl3/binutils/usr.bin/ld/Makefile        Sun Apr 25 23:24:00 2021 +0000
+++ b/external/gpl3/binutils/usr.bin/ld/Makefile        Sun Apr 25 23:35:52 2021 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.33 2020/04/04 01:34:30 christos Exp $
+#      $NetBSD: Makefile,v 1.34 2021/04/25 23:35:52 christos Exp $
 
 CPPFLAGS+=     -I${.CURDIR}/arch/${BINUTILS_MACHINE_ARCH} \
                -I${DIST}/ld \
@@ -79,7 +79,8 @@
     !empty(BINUTILS_MACHINE_ARCH:Maarch64*) || \
     !empty(BINUTILS_MACHINE_ARCH:Mearm*) || \
     !empty(BINUTILS_MACHINE_ARCH:Marm*) || \
-    !empty(BINUTILS_MACHINE_ARCH:Mmips64*)
+    !empty(BINUTILS_MACHINE_ARCH:Mmips64*) || \
+    !empty(BINUTILS_MACHINE_ARCH:Mmipsn64*)
 .  for e in x xbn xc xd xdc xdw xn xr xs xsc xsw xu xw
 .   if exists(ldscripts/${f}.${e})
 FILES+= ${f}.${e}



Home | Main Index | Thread Index | Old Index