Make -fstack-protector-strong the default in gcc 4.9
Bug #1317307 reported by
Steve Beattie
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.9 (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
In gcc 4.9, the new option -fstack-
Changed in gcc-4.9 (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → In Progress |
assignee: | nobody → Steve Beattie (sbeattie) |
To post a comment you must log in.
Attached is an updated version of gcc-default- ssp.diff that enables -fstack- protector- strong by default for gcc-4.9. In addition to enabling the default, it fixes the following testsuite failures:
-FAIL: gcc.dg/ fstack- protector- strong. c scan-assembler- times stack_chk_fail 10 fstack- protector- strong. C -std=gnu++98 scan-assembler- times stack_chk_fail 2 fstack- protector- strong. C -std=gnu++11 scan-assembler- times stack_chk_fail 2 fstack- protector- strong. C -std=gnu++1y scan-assembler- times stack_chk_fail 2
-FAIL: g++.dg/
-FAIL: g++.dg/
-FAIL: g++.dg/
I did need to update one of the tests that was generating an additional test failure; I'll attach that patch in just a second.
I've added tests to lp:qa-regression-testing to verify that -fstack- protector- strong works and is the default option for utopic's compiler.