Fix binutils tools so that they can cope with the special /dev/null file when run...
[binutils-gdb.git] / ld / configure.tgt
index eea5260a8f71adaf3a155eeb18979364080143db..0c780b24d5773517d451e222f9d2d655f1a8f264 100644 (file)
@@ -738,21 +738,38 @@ powerpc-*-windiss*)       targ_emul=elf32ppcwindiss
                        ;;
 pru*-*-*)              targ_emul=pruelf
                        ;;
+riscv32be*-*-linux*)   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
-                       targ_extra_emuls="elf32lriscv_ilp32f elf32lriscv_ilp32 elf64lriscv elf64lriscv_lp64f elf64lriscv_lp64"
+                       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
+                       ;;
+riscvbe-*-* | riscv32be*-*-*)
+                       targ_emul=elf32briscv
+                       targ_extra_emuls="elf64briscv elf32lriscv elf64lriscv"
                        targ_extra_libpath=$targ_extra_emuls
                        ;;
 riscv-*-* | riscv32*-*-*)
                        targ_emul=elf32lriscv
-                       targ_extra_emuls="elf64lriscv"
+                       targ_extra_emuls="elf64lriscv elf32briscv elf64briscv"
+                       targ_extra_libpath=$targ_extra_emuls
+                       ;;
+riscv64be*-*-linux*)   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
-                       targ_extra_emuls="elf64lriscv_lp64f elf64lriscv_lp64 elf32lriscv elf32lriscv_ilp32f elf32lriscv_ilp32"
+                       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
+                       ;;
+riscv64be*-*-*)                targ_emul=elf64briscv
+                       targ_extra_emuls="elf32briscv elf64lriscv elf32lriscv"
                        targ_extra_libpath=$targ_extra_emuls
                        ;;
 riscv64*-*-*)          targ_emul=elf64lriscv
-                       targ_extra_emuls="elf32lriscv"
+                       targ_extra_emuls="elf32lriscv elf64briscv elf32briscv"
                        targ_extra_libpath=$targ_extra_emuls
                        ;;
 rs6000-*-aix[5-9]*)    targ_emul=aix5rs6
@@ -1051,7 +1068,7 @@ sparc*-*-solaris2*)
   ;;
 
 spu-*-elf*)
-  # This allows to build a pair of PPU/SPU toolchains with common sysroot.
+  # This allows one to build a pair of PPU/SPU toolchains with common sysroot.
   NATIVE_LIB_DIRS='/lib'
   ;;