Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Issue 7291019: Use -fstack-protector-all (stack canaries) for Mac debug builds (Closed)

Created:
9 years, 5 months ago by Mark Mentovai
Modified:
9 years, 5 months ago
Reviewers:
Nico
CC:
chromium-reviews
Visibility:
Public.

Description

Use -fstack-protector-all (stack canaries) for Mac debug builds. This was previously in effect at r29591 and then backed out at r29601 because it may have caused problems with Valgrind. The Valgrind problems were probably actually caused by -pie, which was recently reintroduced with protection against being used in Valgrind configurations. I don't think that we have any Valgrind builds that use the Debug configuration, so reintroducing this here shouldn't have any effect on Valgrind. Ancient history: in the pre-GYP days, we had -fstack-protector and -fstack-protector-all in the debug.xcconfig that our Xcode-based build used. See http://src.chromium.org/viewvc/chrome/trunk/src/build/debug.xcconfig?view=markup&pathrev=21959 More information on this option: http://developer.apple.com/library/mac/#documentation/DeveloperTools/gcc-4.2.1/gcc/Optimize-Options.html#index-fbtr_002dbb_002dexclusive-615 http://en.wikipedia.org/wiki/Buffer_overflow_protection#GCC_Stack-Smashing_Protector_.28ProPolice.29 BUG=16713 (not really, that's for release builds, but close enough) TEST=everything Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=91301

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M build/common.gypi View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Mark Mentovai
9 years, 5 months ago (2011-07-01 00:47:46 UTC) #1
Nico
Do you need both or is -fstack-protector-all sufficient? Since we run tests in dbg, have ...
9 years, 5 months ago (2011-07-01 01:04:09 UTC) #2
Mark Mentovai
thakis@chromium.org wrote: > Do you need both or is -fstack-protector-all sufficient? Good point. -fstack-protector-all implies ...
9 years, 5 months ago (2011-07-01 01:18:10 UTC) #3
Nico
9 years, 5 months ago (2011-07-01 03:16:14 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698