zephyr/cmake/compiler
Keith Packard 62bc9bf3e5 cmake: Allow selection of libc API overflow detection mode
This adds a choice of three different libc API buffer overflow detection
modes:

 * None
 * Compile-time
 * Compile-time and Run-time

These correspond with the clang/gcc _FORTIFY_SOURCE modes (0/1/2).
_FORTIFY_SOURCE depends on compiler optimizations and require libc support
which the minimal C library doesn't include, so _FORTIFY_SOURCE is disabled
by default in those cases. Native tooling might also enable
_FORTIFY_SOURCE, so don't enable it by default in that case either.

Signed-off-by: Keith Packard <keithp@keithp.com>
2022-10-31 23:23:27 +09:00
..
arcmwdt cmake: Allow selection of libc API overflow detection mode 2022-10-31 23:23:27 +09:00
armclang
clang cmake: Allow selection of libc API overflow detection mode 2022-10-31 23:23:27 +09:00
gcc cmake: Allow selection of libc API overflow detection mode 2022-10-31 23:23:27 +09:00
host-gcc
icx
xcc cmake: fix use of unsupported -fno-pie with xcc 2022-08-29 08:40:29 -04:00
xcc-clang xcc-clang: Do not used unavailable options 2022-08-23 10:13:43 +02:00
compiler_features.cmake
compiler_flags_template.cmake cmake: Allow selection of libc API overflow detection mode 2022-10-31 23:23:27 +09:00