Skip to content

llext-manager: fix additional .bss and .data section arrangements - #11241

Open
lyakh wants to merge 1 commit into
thesofproject:mainfrom
lyakh:llext
Open

lyakh wants to merge 1 commit into
thesofproject:mainfrom
lyakh:llext

Conversation

@lyakh

@lyakh lyakh commented Sep 28, 2026

Copy link
Copy Markdown
Collaborator

llext-manager is already merging .bss and .data for joined mapping since they both should be mapped as writable data, and linkage- assistance scripts already place them next to each other. But in some empty section cases that still breaks. Add a dedicated region for the joined memory range and use it for mapping.

llext-manager is already merging .bss and .data for joined mapping
since they both should be mapped as writable data, and linkage-
assistance scripts already place them next to each other. But in some
empty section cases that still breaks. Add a dedicated region for the
joined memory range and use it for mapping.

Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Copilot AI lite review requested due to automatic review settings September 28, 2026 10:34

Copilot AI 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.

Copilot review overview

🟢 Approval recommended

The reviewed changes consistently preserve and reuse the merged writable memory range.

Review effort: Lite
Findings: None

What changed in this PR

Fixes LLEXT handling of merged writable .data/.bss memory ranges.

Changes:

  • Stores the merged writable range in module state.
  • Reuses it for unloading and memory-domain management.
File Description
src/​library_manager/​llext_manager.c Tracks and uses the merged writable range.
src/​include/​sof/​lib_manager.h Adds the merged writable-range descriptor.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@lgirdwood

Copy link
Copy Markdown
Member

@lyakh gold standard for llext test seem to be tflm today.

@lyakh

lyakh commented Sep 29, 2026

Copy link
Copy Markdown
Collaborator Author

@lyakh gold standard for llext test seem to be tflm today.

@lgirdwood that's what this is fixing, yes

@lyakh

lyakh commented Sep 30, 2026

Copy link
Copy Markdown
Collaborator Author

"Internal Intel CI" failed on WCL, trying to rerun

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.

4 participants