Skip to content

Assert that Mach-O section_flags_mut is 0#13153

Open
madsmtm wants to merge 1 commit intobytecodealliance:mainfrom
madsmtm:debug-assert-flags-0
Open

Assert that Mach-O section_flags_mut is 0#13153
madsmtm wants to merge 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

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