[cfe-commits] [PATCH] Enable stack protector for OpenBSD
Brad Smith
brad at comstyle.com
Wed Aug 8 23:52:55 PDT 2012
Enable -fstack-protector by default for OpenBSD. OpenBSD
builds with stack protector by default.
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
-------------- next part --------------
Index: lib/Driver/ToolChains.h
===================================================================
--- lib/Driver/ToolChains.h (revision 161478)
+++ lib/Driver/ToolChains.h (working copy)
@@ -443,6 +443,10 @@
virtual Tool &SelectTool(const Compilation &C, const JobAction &JA,
const ActionList &Inputs) const;
+ virtual unsigned GetDefaultStackProtectorLevel(bool KernelOrKext) const {
+ // Default to -fstack-protector on OpenBSD
+ return 1;
+ }
};
class LLVM_LIBRARY_VISIBILITY FreeBSD : public Generic_ELF {
More information about the cfe-commits
mailing list