Skip to content

Conversation

@bugadani
Copy link
Contributor

@bugadani bugadani commented Apr 4, 2025

Fixes #552 - the problem is that the reproducer elf has 2-byte aligned segments (functions in IRAM), and espflash used to 4-byte align segment lengths prematurely, causing them to overlap. This overlap then prevented merging segments, and the end result was an elf that the bootloader was not able to load.

The firmware seems to require some propriatery, or at least project-specific data to be present, so the firmware immediately panics, but it can boot with this PR.

@bugadani bugadani changed the title Align segment length after merging Align segment lengths after merging Apr 4, 2025
@bugadani bugadani force-pushed the align branch 3 times, most recently from a1e5327 to 1c8be30 Compare April 4, 2025 12:40
Copy link
Member

@MabezDev MabezDev left a comment

Choose a reason for hiding this comment

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

LGTM

@jessebraham jessebraham enabled auto-merge April 4, 2025 13:27
@jessebraham jessebraham added this pull request to the merge queue Apr 4, 2025
Merged via the queue into main with commit e6af2af Apr 4, 2025
39 checks passed
@bugadani bugadani deleted the align branch April 4, 2025 13:55
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.

Large .text segments are merged incorrectly?

4 participants