+3
doc/redirects.json
+3
doc/redirects.json
+6
doc/stdenv/stdenv.chapter.md
+6
doc/stdenv/stdenv.chapter.md
···sorry, unimplemented: __builtin_clear_padding not supported for variable length aggregates+Adds the `-D_GLIBCXX_ASSERTIONS` compiler flag. This flag only has an effect on libstdc++ targets, and when defined, enables extra error checking in the form of precondition assertions, such as bounds checking in c++ strings and null pointer checks when dereferencing c++ smart pointers.This flag adds the `-mbranch-protection=pac-ret` compiler option on aarch64-linux targets. This uses ARM v8.3's Pointer Authentication feature to sign function return pointers before adding them to the stack. The pointer's authenticity is then validated before returning to its destination. This dramatically increases the difficulty of ROP exploitation techniques.
+5
-1
pkgs/build-support/cc-wrapper/add-hardening.sh
+5
-1
pkgs/build-support/cc-wrapper/add-hardening.sh
···-declare -a allHardeningFlags=(fortify fortify3 shadowstack stackprotector stackclashprotection nostrictaliasing pacret strictflexarrays1 strictflexarrays3 pie pic strictoverflow format trivialautovarinit zerocallusedregs)+declare -a allHardeningFlags=(fortify fortify3 shadowstack stackprotector stackclashprotection nostrictaliasing pacret strictflexarrays1 strictflexarrays3 pie pic strictoverflow glibcxxassertions format trivialautovarinit zerocallusedregs)···
+1
pkgs/stdenv/generic/make-derivation.nix
+1
pkgs/stdenv/generic/make-derivation.nix
+30
pkgs/test/cc-wrapper/hardening.nix
+30
pkgs/test/cc-wrapper/hardening.nix
··················