summaryrefslogtreecommitdiff
path: root/src/stm/altos-loader.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/stm/altos-loader.ld')
-rw-r--r--src/stm/altos-loader.ld13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/stm/altos-loader.ld b/src/stm/altos-loader.ld
index 50a425c7..2e36dce9 100644
--- a/src/stm/altos-loader.ld
+++ b/src/stm/altos-loader.ld
@@ -48,9 +48,20 @@ SECTIONS {
} > rom
__text_end__ = .;
+ /* Boot data which must live at the start of ram so that
+ * the application and bootloader share the same addresses.
+ * This must be all uninitialized data
+ */
+ .boot : {
+ __boot_start__ = .;
+ *(.boot)
+ . = ALIGN(4);
+ __boot_end__ = .;
+ } >ram
+
/* Functions placed in RAM (required for flashing) */
.textram : {
- __text_ram_start = .;
+ __text_ram_start__ = .;
__data_start__ = .;
*(.text.ram)
. = ALIGN(4);