FMUv2: added bootloader delay signature to text

this allows for a configurable bootloader delay
This commit is contained in:
Andrew Tridgell
2015-03-14 21:12:19 +11:00
parent d28e4ed7a7
commit 9efeb4cf0b
@@ -66,12 +66,20 @@ EXTERN(_vectors) /* force the vectors to be included in the output */
* code pulled in by libgcc.a requires it (and that code cannot be easily avoided). * code pulled in by libgcc.a requires it (and that code cannot be easily avoided).
*/ */
EXTERN(abort) EXTERN(abort)
EXTERN(_bootdelay_signature)
SECTIONS SECTIONS
{ {
.text : { .text : {
_stext = ABSOLUTE(.); _stext = ABSOLUTE(.);
*(.vectors) *(.vectors)
. = ALIGN(32);
/*
This signature provides the bootloader with a way to delay booting
*/
_bootdelay_signature = ABSOLUTE(.);
FILL(0xffecc2925d7d05c5)
. += 8;
*(.text .text.*) *(.text .text.*)
*(.fixup) *(.fixup)
*(.gnu.warning) *(.gnu.warning)