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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 rebase_path("//tools/ubsan/vptr_blacklist.txt", root_build_dir) | 248 rebase_path("//tools/ubsan/vptr_blacklist.txt", root_build_dir) |
249 cflags += [ | 249 cflags += [ |
250 "-fsanitize=vptr", | 250 "-fsanitize=vptr", |
251 "-fsanitize-blacklist=$ubsan_vptr_blacklist_path", | 251 "-fsanitize-blacklist=$ubsan_vptr_blacklist_path", |
252 ] | 252 ] |
253 } | 253 } |
254 if (is_ubsan_security) { | 254 if (is_ubsan_security) { |
255 ubsan_blacklist_path = | 255 ubsan_blacklist_path = |
256 rebase_path("//tools/ubsan/blacklist.txt", root_build_dir) | 256 rebase_path("//tools/ubsan/blacklist.txt", root_build_dir) |
257 cflags += [ | 257 cflags += [ |
258 "-fsanitize=signed-integer-overflow", | 258 "-fsanitize=signed-integer-overflow,shift", |
259 "-fsanitize-blacklist=$ubsan_blacklist_path", | 259 "-fsanitize-blacklist=$ubsan_blacklist_path", |
260 ] | 260 ] |
261 } | 261 } |
262 if (is_cfi && !is_nacl) { | 262 if (is_cfi && !is_nacl) { |
263 cfi_blacklist_path = | 263 cfi_blacklist_path = |
264 rebase_path("//tools/cfi/blacklist.txt", root_build_dir) | 264 rebase_path("//tools/cfi/blacklist.txt", root_build_dir) |
265 cflags += [ | 265 cflags += [ |
266 "-fsanitize=cfi-vcall", | 266 "-fsanitize=cfi-vcall", |
267 "-fsanitize=cfi-derived-cast", | 267 "-fsanitize=cfi-derived-cast", |
268 "-fsanitize=cfi-unrelated-cast", | 268 "-fsanitize=cfi-unrelated-cast", |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 if (target_cpu == "arm") { | 306 if (target_cpu == "arm") { |
307 # http://crbug.com/517105 | 307 # http://crbug.com/517105 |
308 cflags += [ | 308 cflags += [ |
309 "-mllvm", | 309 "-mllvm", |
310 "-sanitizer-coverage-block-threshold=0", | 310 "-sanitizer-coverage-block-threshold=0", |
311 ] | 311 ] |
312 } | 312 } |
313 defines = [ "SANITIZER_COVERAGE" ] | 313 defines = [ "SANITIZER_COVERAGE" ] |
314 } | 314 } |
315 } | 315 } |
OLD | NEW |