diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-12-09 21:03:05 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2020-03-04 19:50:56 -0500 |
commit | 79e2376993434f92434c55a9c0dc5418171acf0a (patch) | |
tree | a1e004f3a6c5bfe0f3c22847ad47e0fbe1a0b579 /src/generic/armcm_link.lds.S | |
parent | c9cb462f90a68deb73cacb179f7bbcde2cb9aeed (diff) | |
download | kutter-79e2376993434f92434c55a9c0dc5418171acf0a.tar.gz kutter-79e2376993434f92434c55a9c0dc5418171acf0a.tar.xz kutter-79e2376993434f92434c55a9c0dc5418171acf0a.zip |
stm32: Add support for a bootloader on stm32f0
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/generic/armcm_link.lds.S')
-rw-r--r-- | src/generic/armcm_link.lds.S | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/generic/armcm_link.lds.S b/src/generic/armcm_link.lds.S index 8014a490..eb3962ad 100644 --- a/src/generic/armcm_link.lds.S +++ b/src/generic/armcm_link.lds.S @@ -19,7 +19,9 @@ SECTIONS { .text : { . = ALIGN(4); + _text_vectortable_start = .; KEEP(*(.vector_table)) + _text_vectortable_end = .; *(.text .text.*) *(.rodata .rodata*) } > rom @@ -27,6 +29,14 @@ SECTIONS . = ALIGN(4); _data_flash = .; +#if CONFIG_ARMCM_RAM_VECTORTABLE + .ram_vectortable (NOLOAD) : { + _ram_vectortable_start = .; + . = . + ( _text_vectortable_end - _text_vectortable_start ) ; + _ram_vectortable_end = .; + } > ram +#endif + .data : AT (_data_flash) { . = ALIGN(4); |