diff options
Diffstat (limited to 'ld/configure.tgt')
-rw-r--r-- | ld/configure.tgt | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/ld/configure.tgt b/ld/configure.tgt index 893d2da..0c780b2 100644 --- a/ld/configure.tgt +++ b/ld/configure.tgt @@ -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 |