Skip to content

feat: Support -z max-page-size#1400

Merged
lapla-cogito merged 5 commits intowild-linker:mainfrom
lapla-cogito:max_page_size
Dec 22, 2025
Merged

feat: Support -z max-page-size#1400
lapla-cogito merged 5 commits intowild-linker:mainfrom
lapla-cogito:max_page_size

Conversation

@lapla-cogito
Copy link
Copy Markdown
Member

This option is used when building gVisor.

This is a prefix-style option, but the existing argument parser did not support prefix options that take a value. To address this, the second commit refactors the option handling logic to distinguish between sub-options that take a value and those that do not.

In addition, for testing, this also introduces a new test directive, ExpectLoadAlignment, which checks the alignment of the first PT_LOAD segment in the test binary.

Comment thread libwild/src/args.rs Outdated
Comment thread libwild/src/args.rs Outdated
Comment thread wild/tests/sources/max-page-size.c Outdated
Comment thread wild/tests/sources/max-page-size.c Outdated
Comment thread wild/tests/sources/max-page-size.c Outdated
Comment thread wild/tests/sources/max-page-size.c Outdated
@lapla-cogito lapla-cogito force-pushed the max_page_size branch 2 times, most recently from 16793fb to ca0f2f7 Compare December 22, 2025 03:59
@lapla-cogito lapla-cogito merged commit 21fbbd7 into wild-linker:main Dec 22, 2025
20 checks passed
@lapla-cogito lapla-cogito deleted the max_page_size branch December 22, 2025 07:44
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