Changes according to @aykevl's feedback

This commit is contained in:
Yannis Huber
2020-06-05 09:27:45 +02:00
committed by Ron Evans
parent 4a658b9082
commit 9ad96fd809
4 changed files with 26 additions and 3 deletions
-1
View File
@@ -276,7 +276,6 @@ func defaultTarget(goos, goarch, triple string) (*TargetSpec, error) {
GDB: "gdb",
PortReset: "false",
FlashMethod: "native",
CodeModel: "default",
}
if goos == "darwin" {
spec.LDFlags = append(spec.LDFlags, "-Wl,-dead_strip")
+1 -1
View File
@@ -1,5 +1,5 @@
{
"inherits": ["riscv32"],
"features": ["+a", "+c", "+m"],
"build-tags": ["fe310", "sifive"]
"build-tags": ["fe310", "sifive"]
}
+1 -1
View File
@@ -1,7 +1,7 @@
MEMORY
{
RAM (xrw) : ORIGIN = 0x80000000, LENGTH = (6 * 1024 * 1024)
RAM (xrw) : ORIGIN = 0x80000000, LENGTH = 6M
}
REGION_ALIAS("FLASH_TEXT", RAM);
+24
View File
@@ -0,0 +1,24 @@
{
"goos": "linux",
"goarch": "arm",
"build-tags": ["tinygo.riscv", "baremetal", "linux", "arm"],
"gc": "conservative",
"compiler": "clang",
"linker": "ld.lld",
"rtlib": "compiler-rt",
"libc": "picolibc",
"cflags": [
"-Os",
"-Werror",
"-fno-exceptions", "-fno-unwind-tables",
"-ffunction-sections", "-fdata-sections"
],
"ldflags": [
"--gc-sections"
],
"extra-files": [
"src/device/riscv/start.S",
"src/runtime/scheduler_tinygoriscv.S"
],
"gdb": "riscv64-unknown-elf-gdb"
}