riscv: use LLVM tools instead of GNU toolchain

Now that we use LLVM 9, RISC-V support in LLVM has far fewer bugs and we
can avoid the GNU toolchain.

  * replace GNU linker with lld
  * replace GCC with clang

Additionally, RISC-V was promoted to stable so it can be enabled by
default in CI.
This commit is contained in:
Ayke van Laethem
2019-11-29 19:12:51 +01:00
committed by Ron Evans
parent 06647aab24
commit d441f0152f
5 changed files with 11 additions and 12 deletions
+3 -2
View File
@@ -4,9 +4,10 @@
"goarch": "arm",
"build-tags": ["tinygo.riscv", "baremetal", "linux", "arm"],
"gc": "conservative",
"compiler": "riscv64-unknown-elf-gcc",
"linker": "riscv64-unknown-elf-ld",
"compiler": "clang",
"linker": "ld.lld",
"cflags": [
"--target=riscv32--none",
"-march=rv32imac",
"-mabi=ilp32",
"-Os",
+5
View File
@@ -47,6 +47,11 @@ SECTIONS
. = ALIGN(4);
_ebss = .; /* used by startup code */
} >RAM
/DISCARD/ :
{
*(.eh_frame) /* causes 'no memory region specified' error in lld */
}
}
/* For the memory allocator. */