summaryrefslogtreecommitdiffhomepage
path: root/vdso
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2018-05-04 13:14:59 -0700
committerShentubot <shentubot@google.com>2018-05-04 13:15:51 -0700
commit7bb10dc7a0499e20a37291d6f5fd105e6ae6fdbf (patch)
tree64142fdc48aaff652adc3a0fc17d76fcec1b2ef9 /vdso
parentf94d90073f3b54a219c687894e9d7ce7f5c4efc4 (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
Diffstat (limited to 'vdso')
-rw-r--r--vdso/BUILD3
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 " +