Skip to content

Conversation

@earlephilhower
Copy link
Owner

runtime_init will all the stack protector initializer from inside the function. Unfortunately that means that the sentinels for the runtime_init function will not be there and GCC will panic.

Add no-stack-check attribute to the runtime_init function to avoid the check and re-enable stack smaeh protection.

Fixes #3131

runtime_init will all the stack protector initializer from inside the
function.  Unfortunately that means that the sentinels for the
runtime_init function will not be there and GCC will panic.

Add no-stack-check attribute to the runtime_init function to avoid
the check and re-enable stack smaeh protection.

Fixes #3131
@earlephilhower earlephilhower merged commit ded8a8a into master Sep 25, 2025
28 checks passed
@earlephilhower earlephilhower changed the title Remove stack protectoe check from runtime_init Remove stack protector check from runtime_init Sep 25, 2025
@earlephilhower earlephilhower deleted the nostk branch September 25, 2025 22:00
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.

Enabling Stack Protector causes panic before CRT startup

2 participants