Skip to content

feat: implement ORIGIN and LENGTH evaluation in linker script expression eval#1803

Merged
davidlattimore merged 2 commits into
wild-linker:mainfrom
plasmaDestroyer:evaluate-memory-regions
Apr 5, 2026
Merged

feat: implement ORIGIN and LENGTH evaluation in linker script expression eval#1803
davidlattimore merged 2 commits into
wild-linker:mainfrom
plasmaDestroyer:evaluate-memory-regions

Conversation

@plasmaDestroyer

Copy link
Copy Markdown
Contributor

Adds evaluation support for ORIGIN(region) and LENGTH(region) expressions, completing the implementation started in the parsing PR. Memory regions parsed from MEMORY blocks are now stored in ProcessedLinkerScript and passed to evaluate_expression as a &[MemoryRegion] parameter.

Closes #1781.

@davidlattimore davidlattimore merged commit b0e15ce into wild-linker:main Apr 5, 2026
24 checks passed
@plasmaDestroyer plasmaDestroyer deleted the evaluate-memory-regions branch April 5, 2026 10:37
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.

Support MEMORY block parsing and LENGTH/ORIGIN linker script functions

2 participants