diff options
author | Oxore <oxore@protonmail.com> | 2023-05-04 00:16:02 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2023-05-04 00:16:02 +0300 |
commit | 79ff96cb2ffb140863c48803d21d10349881f907 (patch) | |
tree | b73a97e084eac2551115272272292a657172c714 /1_hello_world/_sram.ld | |
parent | f2016e84699c4f8a83e759fecac9e5dacd490a40 (diff) |
Add Readme, move hello world into separate dir
Diffstat (limited to '1_hello_world/_sram.ld')
-rw-r--r-- | 1_hello_world/_sram.ld | 26 |
1 files changed, 26 insertions, 0 deletions
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 = .; +} |