diff options
author | Sam James <sam@gentoo.org> | 2022-01-18 16:38:23 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2022-01-22 22:18:52 +0000 |
commit | 1a8d2dfb17fde7a80a46e3ba5ef7fcb38fd106f2 (patch) | |
tree | 55cfa74f4640a08211fdcd55423db386513c21c7 /eclass | |
parent | flag-o-matic.eclass: allow -fno-diagnostics-color -fmessage-length=0 (diff) | |
download | gentoo-1a8d2dfb17fde7a80a46e3ba5ef7fcb38fd106f2.tar.gz gentoo-1a8d2dfb17fde7a80a46e3ba5ef7fcb38fd106f2.tar.bz2 gentoo-1a8d2dfb17fde7a80a46e3ba5ef7fcb38fd106f2.zip |
flag-o-matic.eclass: restructure comments a bit
No functional change.
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/flag-o-matic.eclass | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/eclass/flag-o-matic.eclass b/eclass/flag-o-matic.eclass index 38ad14d8f5fe..37577209281a 100644 --- a/eclass/flag-o-matic.eclass +++ b/eclass/flag-o-matic.eclass @@ -49,13 +49,20 @@ setup-allowed-flags() { _setup-allowed-flags() { ALLOWED_FLAGS=( -pipe -O '-O[12sg]' '-mcpu=*' '-march=*' '-mtune=*' + + # Hardening flags '-fstack-protector*' - '-fsanitize*' '-fno-sanitize*' '-fstack-check*' -fno-stack-check - -fbounds-check -fbounds-checking -fno-strict-overflow - -fno-PIE -fno-pie -nopie -no-pie -fno-unit-at-a-time + -fbounds-check -fbounds-checking + -fno-PIE -fno-pie -nopie -no-pie + + # Misc + -fno-unit-at-a-time -fno-strict-overflow + + # Sanitizers + '-fsanitize*' '-fno-sanitize*' - # debugging symbols should generally be very safe to add + # Debugging symbols should generally be very safe to add -g '-g[0-9]' -ggdb '-ggdb[0-9]' -gdwarf '-gdwarf-*' |