Port cfi blacklist from chromium.
authormachenbach <machenbach@chromium.org>
Tue, 15 Sep 2015 08:45:34 +0000 (01:45 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 15 Sep 2015 08:45:51 +0000 (08:45 +0000)
BUG=chromium:515782
LOG=n

Review URL: https://codereview.chromium.org/1333133003

Cr-Commit-Position: refs/heads/master@{#30734}

build/standalone.gypi
tools/cfi/blacklist.txt [new file with mode: 0644]

index 2aceacaa129e7a45ce4920ea215022fc3c6ac8ce..8eff11ba47f1ef0c1103196528b1ab597838011b 100644 (file)
@@ -95,6 +95,8 @@
       'cfi_vptr%': 0,
       'cfi_diag%': 0,
 
+      'cfi_blacklist%': '<(base_dir)/tools/cfi/blacklist.txt',
+
       # goma settings.
       # 1 to use goma.
       # If no gomadir is set, it uses the default gomadir.
     'use_lto%': '<(use_lto)',
     'cfi_vptr%': '<(cfi_vptr)',
     'cfi_diag%': '<(cfi_diag)',
+    'cfi_blacklist%': '<(cfi_blacklist)',
 
     # Add a simple extras solely for the purpose of the cctests
     'v8_extra_library_files': ['../test/cctest/test-extra.js'],
               '-fsanitize=cfi-vcall',
               '-fsanitize=cfi-derived-cast',
               '-fsanitize=cfi-unrelated-cast',
+              '-fsanitize-blacklist=<(cfi_blacklist)',
             ],
             'ldflags': [
               '-fsanitize=cfi-vcall',
diff --git a/tools/cfi/blacklist.txt b/tools/cfi/blacklist.txt
new file mode 100644 (file)
index 0000000..0ad565e
--- /dev/null
@@ -0,0 +1,4 @@
+# All std:: types
+# This should be possible to remove, if/when we build against
+# a statically linked libc++.
+type:std::*
\ No newline at end of file