From 7bb10dc7a0499e20a37291d6f5fd105e6ae6fdbf Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Fri, 4 May 2018 13:14:59 -0700 Subject: [PATCH] Disable stack protector in VDSO build The VDSO has no hooks to handle stack protector failures. Fixes #9 PiperOrigin-RevId: 195460989 Change-Id: Idf1d55bfee1126e551d7274b7f484e03bf440427 --- vdso/BUILD | 3 +++ 1 file changed, 3 insertions(+) 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 " +