update for gcc-4.6 hardening patches
Bug #696990 reported by
Kees Cook
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-snapshot (Ubuntu) |
Won't Fix
|
High
|
Unassigned |
Bug Description
Binary package hint: gcc-snapshot
Here is an updated patchset for gcc-4.6. I dropped the linaro-specific relro patch since it looked like it was just conflicting with the gold-and-ld patch, which when disabled caused the relro patch not to apply. I tried to make the relro patch apply more easily now in addition to the other updates.
tags: | added: patch |
Changed in gcc-snapshot (Ubuntu): | |
status: | New → Fix Committed |
Changed in gcc-snapshot (Ubuntu): | |
importance: | Undecided → High |
To post a comment you must log in.
Hm, things are not right.
This is correct and expected in 4.5:
$ gcc-4.5 -U_FORTIFY_SOURCE -O2 test.c -o test
$ hardening-check test
...
Fortify Source functions: no, not found!
This is not right for 4.6:
$ gcc-4.6 -U_FORTIFY_SOURCE -O2 test.c -o test
$ hardening-check test
...
Fortify Source functions: yes