aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/avr.ld
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2018-09-23 20:50:12 +0200
committerAyke van Laethem <[email protected]>2018-09-23 20:50:12 +0200
commitb09f7a5e6c108828165ed2c490d3ac2f4b268afb (patch)
tree5ff823c2e5e4a1e32ca5ac6a6662e285d1951f38 /targets/avr.ld
parentb9638315d2dbac253d1e867d4a61f689932f2d48 (diff)
downloadtinygo-b09f7a5e6c108828165ed2c490d3ac2f4b268afb.tar.gz
tinygo-b09f7a5e6c108828165ed2c490d3ac2f4b268afb.zip
avr: make linker script generic
Diffstat (limited to 'targets/avr.ld')
-rw-r--r--targets/avr.ld5
1 files changed, 2 insertions, 3 deletions
diff --git a/targets/avr.ld b/targets/avr.ld
index f2421c4b0..5c6ddeefd 100644
--- a/targets/avr.ld
+++ b/targets/avr.ld
@@ -1,11 +1,10 @@
MEMORY
{
- FLASH_TEXT (rw) : ORIGIN = 0, LENGTH = 32K - _bootloader_size
- RAM (xrw) : ORIGIN = 0, LENGTH = 2K
+ FLASH_TEXT (rw) : ORIGIN = 0, LENGTH = __flash_size - _bootloader_size
+ RAM (xrw) : ORIGIN = 0, LENGTH = __ram_size
}
-_bootloader_size = 512;
_stack_size = 512;
SECTIONS