[PATCH] Protection against stack-based memory corruption errors using SafeStack: Clang command line option and function attribute

Peter Collingbourne peter at pcc.me.uk
Tue May 19 16:42:52 PDT 2015


================
Comment at: include/clang/Basic/LangOptions.def:202
@@ -201,3 +201,3 @@
              "type symbol visibility")
-ENUM_LANGOPT(StackProtector, StackProtectorMode, 2, SSPOff,
+ENUM_LANGOPT(StackProtector, StackProtectorMode, 3, SSPOff,
              "stack protector mode")
----------------
ksvladimir wrote:
> Since SSPSafeStack no longer exists, this should be reverted as well.
Done

================
Comment at: lib/Driver/Tools.cpp:6283
@@ +6282,3 @@
+    CmdArgs.push_back("-u");
+    CmdArgs.push_back("___safestack_init");
+  }
----------------
ksvladimir wrote:
> Is this still required, even though we have AlwaysLink=true above?
No, removed.

http://reviews.llvm.org/D6095

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the cfe-commits mailing list