Remove binary info header, was crashing picotool (#831)
Because OTA has changed the flash map from standard, picotool ends up crashing or hanging while trying to operate on the current built files. Remove the binary_info calls and structures completely to avoid any issue. Fixes #803
This commit is contained in:
parent
34d311fd81
commit
36d5cebde6
7 changed files with 2 additions and 18 deletions
Binary file not shown.
BIN
lib/libpico.a
BIN
lib/libpico.a
Binary file not shown.
|
|
@ -132,15 +132,6 @@ SECTIONS
|
||||||
} > FLASH
|
} > FLASH
|
||||||
__exidx_end = .;
|
__exidx_end = .;
|
||||||
|
|
||||||
/* Machine inspectable binary information */
|
|
||||||
. = ALIGN(4);
|
|
||||||
__binary_info_start = .;
|
|
||||||
.binary_info :
|
|
||||||
{
|
|
||||||
KEEP(*(.binary_info.keep.*))
|
|
||||||
*(.binary_info.*)
|
|
||||||
} > FLASH
|
|
||||||
__binary_info_end = .;
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
||||||
/* End of .text-like segments */
|
/* End of .text-like segments */
|
||||||
|
|
|
||||||
BIN
lib/ota.o
BIN
lib/ota.o
Binary file not shown.
|
|
@ -44,6 +44,7 @@ target_compile_definitions(ota PUBLIC
|
||||||
LFS_NO_MALLOC=1
|
LFS_NO_MALLOC=1
|
||||||
PICO_PANIC_FUNCTION=
|
PICO_PANIC_FUNCTION=
|
||||||
PICO_TIME_DEFAULT_ALARM_POOL_DISABLED=1
|
PICO_TIME_DEFAULT_ALARM_POOL_DISABLED=1
|
||||||
|
PICO_NO_BINARY_INFO=1
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_options(ota PUBLIC
|
target_compile_options(ota PUBLIC
|
||||||
|
|
|
||||||
|
|
@ -84,15 +84,6 @@ SECTIONS
|
||||||
} > FLASH
|
} > FLASH
|
||||||
__exidx_end = .;
|
__exidx_end = .;
|
||||||
|
|
||||||
/* Machine inspectable binary information */
|
|
||||||
. = ALIGN(4);
|
|
||||||
__binary_info_start = .;
|
|
||||||
.binary_info :
|
|
||||||
{
|
|
||||||
KEEP(*(.binary_info.keep.*))
|
|
||||||
*(.binary_info.*)
|
|
||||||
} > FLASH
|
|
||||||
__binary_info_end = .;
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
||||||
/* Vector table goes first in RAM, to avoid large alignment hole */
|
/* Vector table goes first in RAM, to avoid large alignment hole */
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ target_compile_definitions(pico PUBLIC
|
||||||
PICO_RP2040_B0_SUPPORTED=1
|
PICO_RP2040_B0_SUPPORTED=1
|
||||||
PICO_RP2040_B1_SUPPORTED=1
|
PICO_RP2040_B1_SUPPORTED=1
|
||||||
PICO_RP2040_B2_SUPPORTED=1
|
PICO_RP2040_B2_SUPPORTED=1
|
||||||
|
PICO_NO_BINARY_INFO=1
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_options(pico PUBLIC
|
target_compile_options(pico PUBLIC
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue