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

Unified Diff: build/config/sanitizers/BUILD.gn

Issue 1474923002: Roll Clang 247874:254049 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
Index: build/config/sanitizers/BUILD.gn
diff --git a/build/config/sanitizers/BUILD.gn b/build/config/sanitizers/BUILD.gn
index eb7ba4ab93b47bee7fe3b0157a4880b7b4d329de..6479b4b35de73fe4fddbcbc70322d5c741456b07 100644
--- a/build/config/sanitizers/BUILD.gn
+++ b/build/config/sanitizers/BUILD.gn
@@ -35,7 +35,10 @@ config("sanitizer_options_link_helper") {
ldflags += [ "-fsanitize=thread" ]
}
if (is_msan) {
- ldflags += [ "-fsanitize=memory" ]
+ ldflags += [
+ "-fsanitize=memory",
+ "-pie",
+ ]
}
if (is_ubsan) {
ldflags += [ "-fsanitize=undefined" ]
@@ -125,6 +128,7 @@ config("default_sanitizer_flags") {
"-fsanitize=memory",
"-fsanitize-memory-track-origins=$msan_track_origins",
"-fsanitize-blacklist=$msan_blacklist_path",
+ "-fPIC",
]
}
if (is_ubsan) {

Powered by Google App Engine
This is Rietveld 408576698