Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

extra/gen_rodata_ld: Add gen_rodata_ld tool. #246

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

Open
iabdalkader wants to merge 1 commit into arduino:main
base: main
Choose a base branch
Loading
from iabdalkader:add_gen_rodata

Conversation

@iabdalkader
Copy link

@iabdalkader iabdalkader commented Nov 3, 2025

Analyzes an elf and extracts, sorts and writes out its rodata sections:

  • .rodata: sections WITH relocations → copied to RAM (LLEXT_MEM_RODATA)
  • .rodata_noreloc: sections WITHOUT relocations → kept in flash (LLEXT_MEM_RODATA_NO_RELOC)

@iabdalkader iabdalkader changed the title (削除) extra/gen_rodata_ld: Add gen_rodata_ldtool. (削除ここまで) (追記) extra/gen_rodata_ld: Add gen_rodata_ld tool. (追記ここまで) Nov 3, 2025
Copy link

@pillo79 pillo79 left a comment

Choose a reason for hiding this comment

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

Please put the app in its own folder extra/gen-rodata-ld and call it main.go for consistency with existing tools and tooling. Also a very brief README.md would be a nice addition.

Otherwise LGTM, just tiny nits.

Analyzes an elf and extracts, sorts and writes out its rodata sections:
 - .rodata: sections WITH relocations → copied to RAM (LLEXT_MEM_RODATA)
 - .rodata_noreloc: sections WITHOUT relocations → kept in flash (LLEXT_MEM_RODATA_NO_RELOC)
Signed-off-by: iabdalkader <i.abdalkader@gmail.com>
Copy link
Author

Updated.

Copy link

@pillo79 pillo79 left a comment

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@pillo79 pillo79 pillo79 approved these changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /