Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
| 6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
| 7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
| 8 | 8 |
| 9 # Contains the dependencies needed for sanitizers to link into executables and | 9 # Contains the dependencies needed for sanitizers to link into executables and |
| 10 # shared_libraries. Unconditionally depend upon this target as it is empty if | 10 # shared_libraries. Unconditionally depend upon this target as it is empty if |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 239 } | 239 } |
| 240 } | 240 } |
| 241 if (is_ubsan_vptr) { | 241 if (is_ubsan_vptr) { |
| 242 ubsan_vptr_blacklist_path = | 242 ubsan_vptr_blacklist_path = |
| 243 rebase_path("//tools/ubsan/vptr_blacklist.txt", root_build_dir) | 243 rebase_path("//tools/ubsan/vptr_blacklist.txt", root_build_dir) |
| 244 cflags += [ | 244 cflags += [ |
| 245 "-fsanitize=vptr", | 245 "-fsanitize=vptr", |
| 246 "-fsanitize-blacklist=$ubsan_vptr_blacklist_path", | 246 "-fsanitize-blacklist=$ubsan_vptr_blacklist_path", |
| 247 ] | 247 ] |
| 248 } | 248 } |
| 249 if (is_libfuzzer_ubsan) { | |
|
inferno
2016/03/25 20:57:55
please rename this to is_ubsan_security or somethi
aizatsky
2016/03/25 21:02:45
Done.
| |
| 250 ubsan_blacklist_path = | |
| 251 rebase_path("//tools/ubsan/blacklist.txt", root_build_dir) | |
| 252 cflags += [ | |
| 253 "-fsanitize=signed-integer-overflow", | |
| 254 "-fsanitize-blacklist=$ubsan_blacklist_path", | |
| 255 ] | |
| 256 } | |
| 249 if (is_lto && !is_nacl) { | 257 if (is_lto && !is_nacl) { |
| 250 cflags += [ "-flto" ] | 258 cflags += [ "-flto" ] |
| 251 | 259 |
| 252 if (is_cfi) { | 260 if (is_cfi) { |
| 253 cfi_blacklist_path = | 261 cfi_blacklist_path = |
| 254 rebase_path("//tools/cfi/blacklist.txt", root_build_dir) | 262 rebase_path("//tools/cfi/blacklist.txt", root_build_dir) |
| 255 cflags += [ | 263 cflags += [ |
| 256 "-fsanitize=cfi-vcall", | 264 "-fsanitize=cfi-vcall", |
| 257 "-fsanitize=cfi-derived-cast", | 265 "-fsanitize=cfi-derived-cast", |
| 258 "-fsanitize=cfi-unrelated-cast", | 266 "-fsanitize=cfi-unrelated-cast", |
| (...skipping 28 matching lines...) Expand all Loading... | |
| 287 } | 295 } |
| 288 | 296 |
| 289 config("default_sanitizer_coverage_flags") { | 297 config("default_sanitizer_coverage_flags") { |
| 290 cflags = [] | 298 cflags = [] |
| 291 | 299 |
| 292 if (use_sanitizer_coverage) { | 300 if (use_sanitizer_coverage) { |
| 293 # FIXME: make this configurable. | 301 # FIXME: make this configurable. |
| 294 cflags += [ "-fsanitize-coverage=edge,indirect-calls,8bit-counters" ] | 302 cflags += [ "-fsanitize-coverage=edge,indirect-calls,8bit-counters" ] |
| 295 } | 303 } |
| 296 } | 304 } |
| OLD | NEW |