Skip to content

feat: evaluate expressions within PROVIDE with evaluate_expression#1925

Merged
davidlattimore merged 1 commit into
wild-linker:mainfrom
vishruth-thimmaiah:complex_eval_provide
May 13, 2026
Merged

feat: evaluate expressions within PROVIDE with evaluate_expression#1925
davidlattimore merged 1 commit into
wild-linker:mainfrom
vishruth-thimmaiah:complex_eval_provide

Conversation

@vishruth-thimmaiah

Copy link
Copy Markdown
Member

This PR adds support for the PROVIDE/PROVIDE_HIDDEN commands to parse and evaluate expressions using the evaluate_expression function. This PR also lets us evaluate complex expressions within --defsym arguements.

Currently, SEGMENT_START isn't yet handled by evaluate_expression.

@davidlattimore davidlattimore left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Sorry for the merge conflicts arising from my PR yesterday.

Comment thread libwild/src/expression_eval.rs Outdated
Comment thread libwild/src/parsing.rs Outdated
This PR adds support for the PROVIDE/PROVIDE_HIDDEN commands to parse and evaluate
expressions using the evaluate_expression function. This PR also lets us evaluate
complex expressions within --defsym arguements.

Currently, SEGMENT_START isn't yet handled by evaluate_expression.

Signed-off-by: vishruth-thimmaiah <vishruththimmaiah@gmail.com>
@davidlattimore davidlattimore merged commit d394417 into wild-linker:main May 13, 2026
24 checks passed
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