Skip to content

Conversation

@iabdalkader
Copy link

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>
@iabdalkader
Copy link
Author

Updated.

@iabdalkader iabdalkader requested a review from pillo79 November 5, 2025 10:47
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants