aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/avr.ld
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2020-03-20 14:32:57 +0100
committerAyke <[email protected]>2020-03-20 15:12:38 +0100
commit213a6240a17870dea2603e7fd01ff163468e50c9 (patch)
tree5e3b02ccf24186e05c78f4f67526716a59d5efea /targets/avr.ld
parentadd014f21b1663b42899fe20f04f851e47688898 (diff)
downloadtinygo-213a6240a17870dea2603e7fd01ff163468e50c9.tar.gz
tinygo-213a6240a17870dea2603e7fd01ff163468e50c9.zip
avr: move data address space to 0x800000
This convention is followed by most of the avr-gcc toolchain but older versions of binutils don't mind overlapping program/data spaces. However, newer versions start complaining about an overlap in address space: avr-ld: section .stack VMA [0000000000000100,00000000000002ff] overlaps section .text VMA [0000000000000000,0000000000000225] This commit moves the data space in the linker script to 0x800000, like the rest of the toolchain does.
Diffstat (limited to 'targets/avr.ld')
-rw-r--r--targets/avr.ld4
1 files changed, 2 insertions, 2 deletions
diff --git a/targets/avr.ld b/targets/avr.ld
index 7e45b533c..a7c2d90cf 100644
--- a/targets/avr.ld
+++ b/targets/avr.ld
@@ -1,8 +1,8 @@
MEMORY
{
- FLASH_TEXT (rw) : ORIGIN = 0, LENGTH = __flash_size - _bootloader_size
- RAM (xrw) : ORIGIN = __ram_start, LENGTH = __ram_size
+ FLASH_TEXT (rw) : ORIGIN = 0, LENGTH = __flash_size - _bootloader_size
+ RAM (xrw) : ORIGIN = 0x800000 + __ram_start, LENGTH = __ram_size
}
SECTIONS