-
Notifications
You must be signed in to change notification settings - Fork 918
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
Linker script bug, generating invalid ELF files that confuse binutils #1538
Comments
Some additional investigation led to the conclusion that the linker script contains a bug. The sections loaded to RAM are specified as follows:
The documentation of
Bullet 3 leads to an implied The generated ELF will contain two issues:
The overlapping segments trigger all kinds of issues in |
merged into develop |
Due to the order of sections in the linker script, an ELF is generated with a strange layout, that confuses objcopy. This is easily solved by rearranging these sections.
Normally, objcopy is not used on ELF files within the pico-sdk, but there are cases where it is, such as when using the
picowota
firmware loader.A pull request will follow.
The text was updated successfully, but these errors were encountered: