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

Unified Diff: build/common.gypi

Issue 1243373003: Turn off -Wl,-z,defs when building with CFI diagnostics. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Also turn of -fno-rtti Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/common.gypi
diff --git a/build/common.gypi b/build/common.gypi
index e5bc454a7cc9e18c8741e72d85b43da84a0bc3c2..c0bb69cbd4ab7c44145f5a395e90a74ec23adafe 100644
--- a/build/common.gypi
+++ b/build/common.gypi
@@ -3639,7 +3639,7 @@
},
}],
# -Wl,-z,-defs doesn't work with the sanitiziers, http://crbug.com/452065
- ['(OS=="linux" or OS=="android") and asan==0 and msan==0 and tsan==0 and ubsan==0 and ubsan_vptr==0', {
+ ['(OS=="linux" or OS=="android") and asan==0 and msan==0 and tsan==0 and ubsan==0 and ubsan_vptr==0 and cfi_diag==0', {
Nico 2015/08/10 19:13:09 This looks good.
'target_defaults': {
'ldflags': [
'-Wl,-z,defs',
@@ -6104,6 +6104,12 @@
'-fno-sanitize-trap=cfi',
'-fsanitize-recover=cfi',
],
+ 'cflags_cc!': [
+ '-fno-rtti',
+ ],
+ 'cflags!': [
+ '-fno-rtti',
+ ],
Nico 2015/08/10 19:13:09 That's a pretty big behavioral difference. Is this
pcc1 2015/08/10 19:30:04 This is needed to see the dynamic types of objects
Nico 2015/08/11 22:09:13 But CFI is supposed to possibly be shipped to user
pcc1 2015/08/11 22:37:57 cfi_diag==1 is the non-shipping config and is not
'ldflags': [
'-fno-sanitize-trap=cfi',
'-fsanitize-recover=cfi',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698