diff options
author | jaseg <git@jaseg.net> | 2018-11-14 22:47:04 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2018-11-14 22:47:04 +0900 |
commit | eb481f1cda0a6eae1aa0486acb637f985cddcc2f (patch) | |
tree | c6082d8d5e8809e7d590b4f5d0e9d2de2700451b /libusbhost_stm32f4.ld | |
parent | 66f9e82c5ca313fb90edff6a9d1956c02c973934 (diff) | |
download | secure-hid-eb481f1cda0a6eae1aa0486acb637f985cddcc2f.tar.gz secure-hid-eb481f1cda0a6eae1aa0486acb637f985cddcc2f.tar.bz2 secure-hid-eb481f1cda0a6eae1aa0486acb637f985cddcc2f.zip |
known device/sram data persistence working
Diffstat (limited to 'libusbhost_stm32f4.ld')
-rw-r--r-- | libusbhost_stm32f4.ld | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libusbhost_stm32f4.ld b/libusbhost_stm32f4.ld index d1801d8..a1cf6d9 100644 --- a/libusbhost_stm32f4.ld +++ b/libusbhost_stm32f4.ld @@ -33,6 +33,17 @@ MEMORY /* Include the common ld script. */
INCLUDE libopencm3_stm32f4.ld
+/* Extra stuff */
+SECTIONS
+{
+ .backup_sram : {
+ . = ALIGN(4);
+ __backup_sram_start = .;
+ *(.backup_sram)
+ __backup_sram_end = .;
+ } >backup
+}
+
PROVIDE(_ram_start = ORIGIN(ram));
PROVIDE(_ram_end = ORIGIN(ram) + LENGTH(ram));
PROVIDE(_rom_start = ORIGIN(rom));
|