From 79ff96cb2ffb140863c48803d21d10349881f907 Mon Sep 17 00:00:00 2001 From: Oxore Date: Thu, 4 May 2023 00:16:02 +0300 Subject: Add Readme, move hello world into separate dir --- 1_hello_world/_sram.ld | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 1_hello_world/_sram.ld (limited to '1_hello_world/_sram.ld') diff --git a/1_hello_world/_sram.ld b/1_hello_world/_sram.ld new file mode 100644 index 0000000..e9fcc24 --- /dev/null +++ b/1_hello_world/_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 = .; +} -- cgit v1.2.3