mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
Revert "cc-wrapper: add stackcheck hardening (stack clash)"
This reverts commit 4150f5e8ba
.
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[@]}")
|
||||
hardeningCFlags=()
|
||||
hardeningLDFlags=()
|
||||
@ -50,11 +50,7 @@ if [[ ! $hardeningDisable =~ "all" ]]; then
|
||||
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling bindnow >&2; fi
|
||||
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
|
||||
;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user