commit | f6f95ec556ff0ada2d65b5e1fcc2a30a56da4cab | [log] [tgz] |
---|---|---|
author | LIU Hao <lh_mouse@126.com> | Tue Jul 15 10:32:42 2025 +0800 |
committer | LIU Hao <lh_mouse@126.com> | Tue Jul 15 18:35:07 2025 +0800 |
tree | f679b08cd5e3a48be4f3db9c479c1e6808822307 | |
parent | 1d4fa4d1221f59307840b22bc447e4dcf599b5d8 [diff] |
crt: Check for compiler support for `no_stack_protector` This commit contains two changes: 1. `no_stack_protector` is applied only when one of the `-fstack-protector*` options is in effect, for example, when someone builds the CRT with such an option in their `CFLAGS`. 2. When the attribute is required but is not supported by the compiler, it results in broken executables. Now in this case an error is triggered. Signed-off-by: LIU Hao <lh_mouse@126.com>