diff options
author | Yannis Huber <[email protected]> | 2020-07-01 15:49:02 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2020-07-08 00:21:59 +0200 |
commit | a9568932bebdba8b12a2bd30b5accfdeba9f3e28 (patch) | |
tree | a63a1f72d8132e00478ce49c92ff9949243df1d2 /targets | |
parent | f2fbd1dd7e054da3822ab90db4bcb3a435cc051e (diff) | |
download | tinygo-a9568932bebdba8b12a2bd30b5accfdeba9f3e28.tar.gz tinygo-a9568932bebdba8b12a2bd30b5accfdeba9f3e28.zip |
maixbit: workaround to avoid medium code model
Diffstat (limited to 'targets')
-rw-r--r-- | targets/k210.json | 3 | ||||
-rw-r--r-- | targets/maixbit.ld | 6 |
2 files changed, 6 insertions, 3 deletions
diff --git a/targets/k210.json b/targets/k210.json index 4c5f3f91f..5ddd9dbab 100644 --- a/targets/k210.json +++ b/targets/k210.json @@ -1,6 +1,5 @@ { "inherits": ["riscv64"], "features": ["+a", "+c", "+m", "+f", "+d"], - "build-tags": ["k210", "kendryte"], - "code-model": "medium" + "build-tags": ["k210", "kendryte"] } diff --git a/targets/maixbit.ld b/targets/maixbit.ld index e1162a38d..1f8ed4dd4 100644 --- a/targets/maixbit.ld +++ b/targets/maixbit.ld @@ -1,7 +1,11 @@ MEMORY { - RAM (xrw) : ORIGIN = 0x80000000, LENGTH = 6M + /* This is a software workaround to avoid using the medany code model + which causes the llvm9 build to fail. 0x80000000 is mirorred at + 0xffffffff80000000. This is not needed anymore on llvm10. + https://github.com/rust-embedded/riscv-rt/issues/25 */ + RAM (xrw) : ORIGIN = 0xffffffff80000000, LENGTH = 6M } REGION_ALIAS("FLASH_TEXT", RAM); |