pj*) cpu_type=pj endian=big ;;
powerpc*le*) cpu_type=ppc endian=little ;;
powerpc*) cpu_type=ppc endian=big ;;
- riscv32*) cpu_type=riscv endian=little arch=riscv32 ;;
riscv64*) cpu_type=riscv endian=little arch=riscv64 ;;
+ riscv32* | riscv*) cpu_type=riscv endian=little arch=riscv32 ;;
rs6000*) cpu_type=ppc ;;
rl78*) cpu_type=rl78 ;;
rx) cpu_type=rx ;;
crx-*-elf*) fmt=elf ;;
+ csky-*-elf*abiv1) fmt=elf em=csky_abiv1 ;;
+ csky-*-elf*) fmt=elf em=csky_abiv2 ;;
+ csky-*-linux*abiv1) fmt=elf em=csky_abiv1_linux ;;
+ csky-*-linux*) fmt=elf em=csky_abiv2_linux ;;
+
d10v-*-*) fmt=elf ;;
d30v-*-*) fmt=elf ;;
dlx-*-*) fmt=elf ;;
riscv*-*-*) fmt=elf endian=little ;;
+ rx-*-linux*) fmt=elf em=linux ;;
+
s390-*-linux-*) fmt=elf em=linux ;;
s390-*-tpf*) fmt=elf ;;
esac
case ${cpu_type} in
- aarch64 | alpha | arm | i386 | ia64 | microblaze | mips | ns32k | or1k | or1knd | pdp11 | ppc | riscv | sparc | z80 | z8k)
+ aarch64 | alpha | arm | csky | i386 | ia64 | microblaze | mips | ns32k | or1k | or1knd | pdp11 | ppc | riscv | sparc | z80 | z8k)
bfd_gas=yes
;;
esac