[cfe-dev] Stack Protectors
Eric Christopher
echristo at apple.com
Sat Jun 27 18:33:53 PDT 2009
On Jun 27, 2009, at 6:16 PM, Bill Wendling wrote:
> <clang-ssp.patch>
// Blocks default to on for 10.6 (darwin10) and beyond.
// As does nonfragile-abi for 64bit mode
- if (Maj > 9)
+ if (Maj > 9) {
Opts.Blocks = 1;
+ Opts.StackProtector = 1;
+ }
Might want to update the comment, replace it with a list or something :)
Otherwise looks pretty good to me. Not that I'm a clang reviewer or
anything though :)
-eric
More information about the cfe-dev
mailing list