diff options
author | Andrew Tridgell <andrew@tridgell.net> | 2015-03-14 13:56:28 +1100 |
---|---|---|
committer | Andrew Tridgell <andrew@tridgell.net> | 2015-03-14 21:12:19 +1100 |
commit | 9efeb4cf0bab9cf3aaba2b618455f342f749b3ad (patch) | |
tree | 48d15fd3fbe5767e5507c802dc3f5028a660b779 /nuttx-configs | |
parent | d28e4ed7a7e40d3c9952ecfa7c3d46f5108bcbce (diff) | |
download | px4-firmware-9efeb4cf0bab9cf3aaba2b618455f342f749b3ad.tar.gz px4-firmware-9efeb4cf0bab9cf3aaba2b618455f342f749b3ad.tar.bz2 px4-firmware-9efeb4cf0bab9cf3aaba2b618455f342f749b3ad.zip |
FMUv2: added bootloader delay signature to text
this allows for a configurable bootloader delay
Diffstat (limited to 'nuttx-configs')
-rw-r--r-- | nuttx-configs/px4fmu-v2/scripts/ld.script | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nuttx-configs/px4fmu-v2/scripts/ld.script b/nuttx-configs/px4fmu-v2/scripts/ld.script index bec896d1c..b04ad89a6 100644 --- a/nuttx-configs/px4fmu-v2/scripts/ld.script +++ b/nuttx-configs/px4fmu-v2/scripts/ld.script @@ -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). */ EXTERN(abort) +EXTERN(_bootdelay_signature) SECTIONS { .text : { _stext = ABSOLUTE(.); *(.vectors) + . = ALIGN(32); + /* + This signature provides the bootloader with a way to delay booting + */ + _bootdelay_signature = ABSOLUTE(.); + FILL(0xffecc2925d7d05c5) + . += 8; *(.text .text.*) *(.fixup) *(.gnu.warning) |