Hi,
This patch adds the command line option "-fstack-protector-strong".
This option has the following affects:
- It adds the ssp-strong IR attribute to each function within the CU.
- It defines the macro SSP_STRONG with the value of 2.
Note that the patch changes the semantics of the frontend option
(-stack-protector) such that:
Before After -stack-protector 0 : Disable ssp. -stack-protector 0 : Disable ssp -stack-protector 1 : Generate ssp. -stack-protector 1 : Generate ssp -stack-protector 2 : Generate sspreq. -stack-protector 2 : Generate sspstrong -stack-protector 3 : Generate sspreq.
Placing ssp-strong between ssp and sspreq (a.k.a, "all") is a logical choice (in terms of level of protection), although it does change the -cc1 interface. (Hopefully not an issue; I mention it just in case.)
Does this look good to go in?
Thanks,
- Josh