Revert "cc-wrapper: add stackcheck hardening (stack clash)"
This reverts commit 4150f5e8ba650416dcb8956c9835885cc6a2a80d. The stack protector hardening breaks the llvm_4 build.
This commit is contained in:
parent
a4252649bf
commit
d42f502c84
@ -1,4 +1,4 @@
|
|||||||
hardeningFlags=(fortify stackprotector pic strictoverflow format relro bindnow stackcheck)
|
hardeningFlags=(fortify stackprotector pic strictoverflow format relro bindnow)
|
||||||
hardeningFlags+=("${hardeningEnable[@]}")
|
hardeningFlags+=("${hardeningEnable[@]}")
|
||||||
hardeningCFlags=()
|
hardeningCFlags=()
|
||||||
hardeningLDFlags=()
|
hardeningLDFlags=()
|
||||||
@ -50,11 +50,7 @@ if [[ ! $hardeningDisable =~ "all" ]]; then
|
|||||||
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling bindnow >&2; fi
|
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling bindnow >&2; fi
|
||||||
hardeningLDFlags+=('-z' 'now')
|
hardeningLDFlags+=('-z' 'now')
|
||||||
;;
|
;;
|
||||||
stackcheck)
|
*)
|
||||||
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling stackcheck >&2; fi
|
|
||||||
hardeningCFlags+=('-fstack-check=specific')
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Hardening flag unknown: $flag" >&2
|
echo "Hardening flag unknown: $flag" >&2
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
x
Reference in New Issue
Block a user