Skip to content

Assert that Mach-O section_flags_mut is 0#13153

Merged
alexcrichton merged 1 commit intobytecodealliance:mainfrom
madsmtm:debug-assert-flags-0
Apr 21, 2026
Merged

Assert that Mach-O section_flags_mut is 0#13153
alexcrichton merged 1 commit intobytecodealliance:mainfrom
madsmtm:debug-assert-flags-0

Conversation

@madsmtm
Copy link
Copy Markdown
Contributor

@madsmtm madsmtm commented Apr 20, 2026

To ensure we don't unintentionally overwrite default flags. Discussed in #13137 (comment).

@madsmtm madsmtm requested a review from a team as a code owner April 20, 2026 20:17
@madsmtm madsmtm requested review from uweigand and removed request for a team April 20, 2026 20:17
@madsmtm
Copy link
Copy Markdown
Contributor Author

madsmtm commented Apr 20, 2026

Dunno if I can do:
r? @bjorn3

@bjorn3
Copy link
Copy Markdown
Contributor

bjorn3 commented Apr 20, 2026

This can probably be a full assert. It isn't on a perf criticial path.

(I don't have write permissions for Cranelift)

@github-actions github-actions Bot added cranelift Issues related to the Cranelift code generator cranelift:module labels Apr 20, 2026
To ensure we don't unintentionally overwrite default flags.
@madsmtm madsmtm force-pushed the debug-assert-flags-0 branch from 514e638 to 5547f9a Compare April 20, 2026 22:22
@madsmtm madsmtm changed the title Add debug assert that section_flags_mut is 0 Assert that Mach-O section_flags_mut is 0 Apr 20, 2026
@madsmtm
Copy link
Copy Markdown
Contributor Author

madsmtm commented Apr 20, 2026

I've made it a full assertion

@alexcrichton alexcrichton added this pull request to the merge queue Apr 21, 2026
Merged via the queue into bytecodealliance:main with commit 83e8a7b Apr 21, 2026
48 checks passed
@madsmtm madsmtm deleted the debug-assert-flags-0 branch April 21, 2026 21:56
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.

3 participants