summaryrefslogtreecommitdiff
path: root/src/stm/altos-loader.ld
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-03-11 13:21:04 -0700
committerKeith Packard <keithp@keithp.com>2013-05-07 20:16:36 -0700
commitb1a43ce313c85cb7f8f16f7f0647d9d4320ba692 (patch)
tree932b1768bc85c5ef5865d6acd61eac22a8584dcc /src/stm/altos-loader.ld
parent56a7cbbf51f5c9ebbfe17d1cc30ed807572af3cc (diff)
altos: Clean up boot loader support
Split out code into separate files. Add support for getting back to boot loader from application. Signed-off-by: Keith Packard <keithp@keithp.com>
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);