
SecurityGuide
The Complete Guide to Compiler and Linker Hardening Flags
Every GCC and Clang hardening flag that matters, with its minimum version, cost and effect on the binary, plus Make, CMake and Meson recipes and checks.
23 min read
Tag
27 posts

Every GCC and Clang hardening flag that matters, with its minimum version, cost and effect on the binary, plus Make, CMake and Meson recipes and checks.

A working tour of GCC attributes and builtins for C: function, variable and type attributes, the builtins worth knowing, and how to keep them portable.

Build static and shared libraries in C with ar, gcc and ld, then link, version, install and debug them, with a decision table for choosing between the two.