[PATCH] D13122: Enable SafeStack on all Linux platforms

Evgeniy Stepanov via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 23 18:29:38 PDT 2015


eugenis created this revision.
eugenis added reviewers: samsonov, pcc.
eugenis added a subscriber: cfe-commits.
eugenis set the repository for this revision to rL LLVM.

I don't see the point in limiting it to x86/x86_64 in the driver. It is only slightly less broken on x86 than on other platforms.

Repository:
  rL LLVM

http://reviews.llvm.org/D13122

Files:
  lib/Driver/ToolChains.cpp

Index: lib/Driver/ToolChains.cpp
===================================================================
--- lib/Driver/ToolChains.cpp
+++ lib/Driver/ToolChains.cpp
@@ -3800,6 +3800,7 @@
   Res |= SanitizerKind::Address;
   Res |= SanitizerKind::KernelAddress;
   Res |= SanitizerKind::Vptr;
+  Res |= SanitizerKind::SafeStack;
   if (IsX86_64 || IsMIPS64 || IsAArch64)
     Res |= SanitizerKind::DataFlow;
   if (IsX86_64 || IsMIPS64)
@@ -3810,7 +3811,6 @@
     Res |= SanitizerKind::Memory;
   if (IsX86 || IsX86_64) {
     Res |= SanitizerKind::Function;
-    Res |= SanitizerKind::SafeStack;
   }
   return Res;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13122.35579.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150924/d3f48419/attachment.bin>


More information about the cfe-commits mailing list