-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp32: workaround esptool linker sections limit #27070
esp32: workaround esptool linker sections limit #27070
Conversation
@dcpleung Probably this change breaks something in symbol placement, following test code which was otherwise functional was found to broken:
Please have a look once. Thanks. |
When converting ELF to a flashable image, the esptool can only process up to 16 ELF sections. Zephyr has been happily grouping similar objects into linker sections which can easily go over esptool's limit. This patch consolidates the kernel, net, log, and shell objects into their own sections. Also remove the app_noinit section as no one is emitting anything into that section, and it's not being used by other arch/SoC/boards in Zephyr. Fixes zephyrproject-rtos#20980 Signed-off-by: Daniel Leung <[email protected]>
a63a6fb
to
0a684ef
Compare
Uploaded a new version. This should fix the issue. |
Verified, it fixed the issue. Thanks. |
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am no specialist here, but i was able to flash and run simple sample applications on the esp32.
When converting ELF to a flashable image, the esptool can only
process up to 16 ELF sections. Zephyr has been happily grouping
similar objects into linker sections which can easily go over
esptool's limit. This patch consolidates the kernel, net, log,
and shell objects into their own sections.
Also remove the app_noinit section as no one is emitting
anything into that section, and it's not being used by other
arch/SoC/boards in Zephyr.
Fixes #20980
Signed-off-by: Daniel Leung [email protected]