Skip to content

feat: Support -z stack-size=SIZE#1448

Merged
lapla-cogito merged 2 commits into
wild-linker:mainfrom
lapla-cogito:z_stack_size
Jan 13, 2026
Merged

feat: Support -z stack-size=SIZE#1448
lapla-cogito merged 2 commits into
wild-linker:mainfrom
lapla-cogito:z_stack_size

Conversation

@lapla-cogito

@lapla-cogito lapla-cogito commented Jan 12, 2026

Copy link
Copy Markdown
Member

This option is commonly used in environments with small default stack sizes like musl, or in scenarios where the stack size is typically specified explicitly, such as with WebAssembly: https://github.com/search?q=%22-z+stack-size%22&type=code
(Of course, we still don't support linking to WebAssembly yet)


//#Config:stack-size:default
//#LinkArgs:-z stack-size=0x1000 -z now
//#DiffIgnore:section.note.gnu.property

@lapla-cogito lapla-cogito Jan 12, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@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.

Nice!

@lapla-cogito lapla-cogito merged commit 6d70ccf into wild-linker:main Jan 13, 2026
20 checks passed
@lapla-cogito lapla-cogito deleted the z_stack_size branch January 13, 2026 01:10
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