Skip to content

Conversation

@sbmueller
Copy link
Contributor

@sbmueller sbmueller commented Feb 24, 2025

In the LLVM toolchain configuration, the stack protector flag is removed. This feature will emit a warning, if stack protection is not deemed sensible for an array, which is the case for less equal than 8 bytes of size. If warnings as errors is enabled, this will fail the build, if an array of that size is defined.
We are removing the flag for our default builds, as stack protection comes at a small runtime cost, and we expect this default toolchain to be used for development purposes only, where stack protection might not be as relevant.
Users are encouraged to consider the stricter flags -fstack-protector-strong or -fstack-protector-all for production builds.

In the LLVM toolchain configuration, the stack protector flag is
removed. This feature will emit a warning, if stack protection is not
deemed sensible for an array, which is the case for less than 8 bytes of
size. If warnings as errors is enabled, this will fail the build, if an
array of that size is defined.
We are removing the flag for our default builds, as stack protection
comes at a small runtime cost and we expect this default toolchain to be
used for development purposes only, where stack protection might not be
as relevant.
Users are encouraged to consider the stricter flags
`-fstack-protector-strong` or `-fstack-protector-all` for production builds.
@sbmueller sbmueller closed this Mar 11, 2025
@sbmueller sbmueller deleted the smuller/AP-3388-remove-stack-protector branch March 11, 2025 07:57
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