Introduce -fstack-shuffle, which randomizes local stack variables.
authormartynas <martynas@openbsd.org>
Tue, 6 May 2014 23:22:33 +0000 (23:22 +0000)
committermartynas <martynas@openbsd.org>
Tue, 6 May 2014 23:22:33 +0000 (23:22 +0000)
commit121b8252e78edb2a35c749786359b07e61fda24a
tree94c4fb1ee7ea3bdb1979cb06755bc3c875363e67
parentc8d42ad70065b0477569f3bd8bd7d4f08818bdc0
Introduce -fstack-shuffle, which randomizes local stack variables.
This will make the environment more hostile and help detect bugs
that depend on overrunning one variable into another, with almost
no performance cost.

Discussed with Theo at m2k14 hackathon.  "oh god yes" tedu@, "oh nice" djm@
gnu/gcc/gcc/cfgexpand.c
gnu/gcc/gcc/common.opt