Compiler Options Hardening Guide for C and C++
by the Open Source Security Foundation (OpenSSF) Best Practices Working Group, 2025-03-28
This document is a guide for compiler and linker options that contribute to delivering reliable and secure code using native (or cross) toolchains for C and C++. The objective of compiler options hardening is to produce application binaries (executables) with security mechanisms against potential attacks and/or misbehavior.
Hardened compiler options should also produce applications that integrate well with ...
Read more at best.openssf.org