Skip to content

Commit

Permalink
Remove bianry info header, was crashing picotool
Browse files Browse the repository at this point in the history
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
  • Loading branch information
earlephilhower committed Sep 3, 2022
1 parent 34d311f commit bf523a9
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 18 deletions.
Binary file modified lib/libpico-ipv6.a
Binary file not shown.
Binary file modified lib/libpico.a
Binary file not shown.
9 changes: 0 additions & 9 deletions lib/memmap_default.ld
Original file line number Diff line number Diff line change
Expand Up @@ -132,15 +132,6 @@ SECTIONS
} > FLASH
__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);

/* End of .text-like segments */
Expand Down
Binary file modified lib/ota.o
Binary file not shown.
1 change: 1 addition & 0 deletions ota/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ target_compile_definitions(ota PUBLIC
LFS_NO_MALLOC=1
PICO_PANIC_FUNCTION=
PICO_TIME_DEFAULT_ALARM_POOL_DISABLED=1
PICO_NO_BINARY_INFO=1
)

target_compile_options(ota PUBLIC
Expand Down
9 changes: 0 additions & 9 deletions ota/memmap_ota.ld
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,6 @@ SECTIONS
} > FLASH
__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);

/* Vector table goes first in RAM, to avoid large alignment hole */
Expand Down
1 change: 1 addition & 0 deletions tools/libpico/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ target_compile_definitions(pico PUBLIC
PICO_RP2040_B0_SUPPORTED=1
PICO_RP2040_B1_SUPPORTED=1
PICO_RP2040_B2_SUPPORTED=1
PICO_NO_BINARY_INFO=1
)

target_compile_options(pico PUBLIC
Expand Down

0 comments on commit bf523a9

Please sign in to comment.