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 " +