Skip to content

Don't corrupt ELF files generated by IAR tools - #375

Merged
will-v-pi merged 1 commit into
raspberrypi:developfrom
bavison:iar_compatibility
Nov 11, 2026
Merged

will-v-pi merged 1 commit into
raspberrypi:developfrom
bavison:iar_compatibility

Conversation

@bavison

@bavison bavison commented Nov 6, 2026

Copy link
Copy Markdown

GNU ld puts the program header table immediately after the ELF header, but other linkers don't (IAR ILINK puts it at the end of the file, after the section data). Therefore we need to move the program header table as well.

Fixes #374

GNU ld puts the program header table immediately after the ELF header,
but other linkers don't (IAR ILINK puts it at the end of the file,
after the section data). Therefore we need to move the program header
table as well.

@will-v-pi will-v-pi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks, LGTM - I'll just wait for the Ubuntu outage to stop so the CI passes, and will merge this

@will-v-pi
will-v-pi merged commit 91c7f85 into raspberrypi:develop Nov 11, 2026
101 of 119 checks passed
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