diff options
author | Michael Pratt <mpratt@google.com> | 2018-05-04 13:14:59 -0700 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2018-05-04 13:15:51 -0700 |
commit | 7bb10dc7a0499e20a37291d6f5fd105e6ae6fdbf (patch) | |
tree | 64142fdc48aaff652adc3a0fc17d76fcec1b2ef9 | |
parent | f94d90073f3b54a219c687894e9d7ce7f5c4efc4 (diff) |
Disable stack protector in VDSO build
The VDSO has no hooks to handle stack protector failures.
Fixes #9
PiperOrigin-RevId: 195460989
Change-Id: Idf1d55bfee1126e551d7274b7f484e03bf440427
-rw-r--r-- | vdso/BUILD | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vdso/BUILD b/vdso/BUILD index 9c4bc167e..d13d01cfd 100644 --- a/vdso/BUILD +++ b/vdso/BUILD @@ -26,6 +26,9 @@ genrule( "-O2 " + "-std=c++11 " + "-fPIC " + + # Some toolchains enable stack protector by default. Disable it, the + # VDSO has no hooks to handle failures. + "-fno-stack-protector " + "-fuse-ld=gold " + "-m64 " + "-shared " + |