diff options
Diffstat (limited to '2_scroll_planes/_sram.ld')
-rw-r--r-- | 2_scroll_planes/_sram.ld | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/2_scroll_planes/_sram.ld b/2_scroll_planes/_sram.ld new file mode 100644 index 0000000..e9fcc24 --- /dev/null +++ b/2_scroll_planes/_sram.ld @@ -0,0 +1,26 @@ +SECTIONS { + __stacktop = ORIGIN(SRAM) + 0xe000; + __data_load = LOADADDR(.data); + . = ORIGIN(SRAM); + + .data ALIGN(4) : { + __data_start = .; + *(.data) + *(.data*) + . = ALIGN(4); + __data_end = .; + } >SRAM AT >ROM + + .bss ALIGN(4) (NOLOAD) : { + __bss_start = .; + *(.bss) + *(.bss*) + . = ALIGN(4); + __bss_end = .; + *(.noinit) + *(.noinit*) + } >SRAM + + . = ALIGN(4); + __heap_start = .; +} |