mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 02:13:33 +08:00
FMUv2: added bootloader delay signature to text
this allows for a configurable bootloader delay
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user