Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/binutils/dist/ld Restore netbsd riscv targets



details:   https://anonhg.NetBSD.org/src/rev/75a9a6fc0d75
branches:  trunk
changeset: 373078:75a9a6fc0d75
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jan 16 08:27:22 2023 +0000

description:
Restore netbsd riscv targets

diffstat:

 external/gpl3/binutils/dist/ld/configure.tgt |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 988f4d53587e -r 75a9a6fc0d75 external/gpl3/binutils/dist/ld/configure.tgt
--- a/external/gpl3/binutils/dist/ld/configure.tgt      Mon Jan 16 00:37:59 2023 +0000
+++ b/external/gpl3/binutils/dist/ld/configure.tgt      Mon Jan 16 08:27:22 2023 +0000
@@ -833,11 +833,13 @@
                        ;;
 pru*-*-*)              targ_emul=pruelf
                        ;;
-riscv32be*-*-linux*)   targ_emul=elf32briscv
+riscv32be*-*-linux* | riscv32be*-*-netbsd*)
+                       targ_emul=elf32briscv
                        targ_extra_emuls="elf32briscv_ilp32f elf32briscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf64lriscv 
elf64lriscv_lp64f elf64lriscv_lp64"
                        targ_extra_libpath=$targ_extra_emuls
                        ;;
-riscv32*-*-linux*)     targ_emul=elf32lriscv
+riscv32*-*-linux* | riscv-*-netbsd* | riscv32*-*-netbsd*)
+                       targ_emul=elf32lriscv
                        targ_extra_emuls="elf32lriscv_ilp32f elf32lriscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32 elf64briscv 
elf64briscv_lp64f elf64briscv_lp64"
                        targ_extra_libpath=$targ_extra_emuls
                        ;;
@@ -851,11 +853,13 @@
                        targ_extra_emuls="elf64lriscv elf32briscv elf64briscv"
                        targ_extra_libpath=$targ_extra_emuls
                        ;;
-riscv64be*-*-linux*)   targ_emul=elf64briscv
+riscv64be*-*-linux* | riscv64be*-*-netbsd*)
+                       targ_emul=elf64briscv
                        targ_extra_emuls="elf64briscv_lp64f elf64briscv_lp64 elf32briscv elf32briscv_ilp32f elf32briscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv 
elf32lriscv_ilp32f elf32lriscv_ilp32"
                        targ_extra_libpath=$targ_extra_emuls
                        ;;
-riscv64*-*-linux*)     targ_emul=elf64lriscv
+riscv64*-*-linux* | riscv64*-*-netbsd*)        
+                       targ_emul=elf64lriscv
                        targ_extra_emuls="elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32 elf64briscv elf64briscv_lp64f elf64briscv_lp64 elf32briscv 
elf32briscv_ilp32f elf32briscv_ilp32"
                        targ_extra_libpath=$targ_extra_emuls
                        ;;



Home | Main Index | Thread Index | Old Index