diff options
author | Cedric DOURLENT <cedric.dourlent@softathome.com> | 2024-01-12 09:23:46 +0100 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2024-01-19 21:27:14 +0100 |
commit | 869f8b21e755e752e6e0bbec1750810751c54b72 (patch) | |
tree | 24a153f38ecbbbb206512c43821e4ae34edb6e51 /toolchain | |
parent | cc022082e97de93ca40b212e0f163a0e04c77608 (diff) | |
download | openwrt-869f8b21e755e752e6e0bbec1750810751c54b72.tar.gz openwrt-869f8b21e755e752e6e0bbec1750810751c54b72.tar.bz2 openwrt-869f8b21e755e752e6e0bbec1750810751c54b72.zip |
build: add option for building with stack-protector-all
The GCC option -fstack-protector-all is a security feature used to protect against stack-smashing attacks.
This option enhances the stack-smashing protection provided by -fstack-protector-strong.
-fstack-protector-all option applies stack protection to all functions, regardless of their characteristics.
While this offers the most comprehensive protection against stack-smashing attacks, it can significantly impact
the performance of the program because every function call includes additional checks for stack integrity.
This option can incur a performance penalty because of the extra checks added to every function call,
but it significantly enhances security, making it harder for attackers to exploit buffer overflows to execute arbitrary code.
It's particularly useful in scenarios where security is paramount and performance trade-offs are acceptable.
Signed-off-by: Cedric DOURLENT <cedric.dourlent@softathome.com>
Diffstat (limited to 'toolchain')
0 files changed, 0 insertions, 0 deletions