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

Volodymyr Kuznetsov vova.kuznetsov at epfl.ch
Tue May 19 15:51:29 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")
----------------
Since SSPSafeStack no longer exists, this should be reverted as well.

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

http://reviews.llvm.org/D6095

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






More information about the cfe-commits mailing list