Module Name: src
Committed By: skrll
Date: Mon Jan 16 08:27:22 UTC 2023
Modified Files:
src/external/gpl3/binutils/dist/ld: configure.tgt
Log Message:
Restore netbsd riscv targets
To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 src/external/gpl3/binutils/dist/ld/configure.tgt
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl3/binutils/dist/ld/configure.tgt
diff -u src/external/gpl3/binutils/dist/ld/configure.tgt:1.40 src/external/gpl3/binutils/dist/ld/configure.tgt:1.41
--- src/external/gpl3/binutils/dist/ld/configure.tgt:1.40 Sun Jan 15 23:31:51 2023
+++ src/external/gpl3/binutils/dist/ld/configure.tgt Mon Jan 16 08:27:22 2023
@@ -833,11 +833,13 @@ powerpc-*-windiss*) targ_emul=elf32ppcwi
;;
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 @@ riscv-*-* | riscv32*-*-*)
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
;;