diff options
author | Oxore <oxore@protonmail.com> | 2023-05-06 23:23:59 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-05-06 23:23:59 +0300 |
commit | d39090b6a94b7c1700d190a1bb63e85ff1c1f4ad (patch) | |
tree | 3c1702dd04aad5ba79b243422c75a21a26a4bc16 /2_scroll_planes/_sram.ld | |
parent | ebcd974b8e18a2033c94cb0050dab73964d6c19b (diff) |
Add 2_scroll_planes demo
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 = .; +} |