Skip to content
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

rp2_common/pico_standard_link: linker script fixes #1539

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

mvds00
Copy link
Contributor

@mvds00 mvds00 commented Nov 8, 2023

The resulting elf binaries contained an unusual section that leads to an error when objcopy attempts to update a section (e.g. when using the picowota combined build mechanism).

This is due to the order of sections, where two RAM sections were separate by a RAM AT>FLASH section. The documentation of ld describes that the AT>FLASH is effectively "sticky", so that the next RAM section behaves as if AT>FLASH was specified (which is not intended). By moving the RAM-only sections together, this issue is solved.

Fixes #1538 (see this issue for a detailed analysis)

The resulting elf binaries contained an unusual section that leads to an error
when objcopy attempts to update a section (e.g. when using the picowota
combined build mechanism).

This seemed to be due to the order of sections, where two RAM-only sections
were split by a RAM/FLASH section. By moving the RAM-only sections together,
this issue disappeared.
Copy link
Contributor

@kilograham kilograham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch...

@kilograham kilograham added this to the 1.5.2 milestone Jan 12, 2024
@kilograham kilograham merged commit 4d19007 into raspberrypi:develop Jan 12, 2024
mungewell pushed a commit to mungewell/pico-sdk that referenced this pull request Mar 18, 2024
The resulting elf binaries contained an unusual section that leads to an error
when objcopy attempts to update a section (e.g. when using the picowota
combined build mechanism).

This seemed to be due to the order of sections, where two RAM-only sections
were split by a RAM/FLASH section. By moving the RAM-only sections together,
this issue disappeared.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants