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.
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 {
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits