Skip to content

cranelift-object: set symbol flags after defining - #14519

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
philipc:object-symbol-flags
Oct 4, 2026
Merged

alexcrichton merged 1 commit into
bytecodealliance:mainfrom
philipc:object-symbol-flags

Conversation

@philipc

@philipc philipc commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

The default symbol flags depend on whether the symbol has been defined or not. Calling symbol_flags_mut() initialises the flags with the default, so calling it before add_symbol_data() results in the wrong flags.

See gimli-rs/object#1002

The default symbol flags depend on whether the symbol has been defined
or not. Calling symbol_flags_mut() initialises the flags with the
default, so calling it before add_symbol_data() results in the wrong
flags.
@philipc
philipc requested a review from a team as a code owner October 4, 2026 05:43
@philipc
philipc requested review from alexcrichton and removed request for a team October 4, 2026 05:43
@github-actions github-actions Bot added cranelift Issues related to the Cranelift code generator cranelift:module labels Oct 4, 2026
@alexcrichton
alexcrichton added this pull request to the merge queue Oct 4, 2026
Merged via the queue into bytecodealliance:main with commit ee99a42 Oct 4, 2026
53 checks passed
@philipc
philipc deleted the object-symbol-flags branch October 5, 2026 01:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift:module cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants