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

compiler: Strip .image_header section in bin #535

Merged
merged 1 commit into from
Jan 8, 2024

Conversation

kasjer
Copy link
Contributor

@kasjer kasjer commented Nov 23, 2023

This sepcifies .image_header section that will be removed from elf when .bin file is generated.

So far there is no such section used.
With this change it is possible to have elf file that already contains image header (in .image_header section). This header will be removed and so create image will add new one.

Elf file containing image header can be flashed by debugger, this way output build from cmake can be use directly by IDE that supports cmake.

This sepcifies .image_header section that will be removed from elf when .bin file is generated.

So far there is no such section used.
With this change it is possible to have elf file that already contains image header (in .image_header section).
This header will be removed and so create image will add new one.

Elf file containing image header can be flashed by debugger, this way output build from cmake can be use directly by IDE that supports cmake.
@kasjer kasjer merged commit 1e7bf05 into apache:master Jan 8, 2024
59 checks passed
@kasjer kasjer deleted the kasjer/strip-image-header branch January 8, 2024 11:12
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