Compiler Options Hardening for C and C++
summary
OpenSSF publishes a Compiler Options Hardening Guide that lists explicit recommended options and explains rationale, performance tradeoffs and incompatible language features, plus a list of discouraged options, a section on sanitizers, and guidance for stripping debug info. The guide targets builds from source where distro defaults may not apply, covers GCC and Clang, notes major Linux distributions already enable many flags while embedded projects lag, released a first version late last year, and invites contributions and tooling to automate option checks.
AI-written summary · about
