boot_stage2: cleanup and correctness fixes

This commit is contained in:
graham sanderson
2021-04-06 11:48:42 -05:00
committed by Graham Sanderson
parent c6f87c7d62
commit d974a3b0e9
4 changed files with 76 additions and 36 deletions

View File

@ -6,7 +6,10 @@
#if !PICO_NO_BINARY_INFO && !PICO_NO_PROGRAM_INFO
#include "pico/binary_info.h"
#if !PICO_NO_FLASH
#include "boot_stage2/config.h"
#endif
// Note we put at most 4 pieces of binary info in the reset section because that's how much spare space we had
// (picked the most common ones)... if there is a link failure because of .reset section overflow then move
@ -89,4 +92,4 @@ bi_decl(bi_program_build_attribute("All optimization disabled"))
#endif
#endif
#endif
#endif