[fuchsia] Enable shadow-call-stack for all targets.

Bug: fuchsia:27339, 821951
Change-Id: If685fd9817f8dae8671634f3798a655ddb2ba392
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1863774
Auto-Submit: Wez <wez@chromium.org>
Commit-Queue: Kevin Marshall <kmarshall@chromium.org>
Reviewed-by: Kevin Marshall <kmarshall@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#709978}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: f1bb41bdc78a389634aae97914ea93d071524c52
This commit is contained in:
Wez 2019-10-28 18:48:00 +00:00 коммит произвёл Commit Bot
Родитель 73c77ecb09
Коммит 305a5c0783
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -51,7 +51,11 @@ config("compiler") {
# TODO(crbug.com/821951): Clang enables SafeStack by default when targeting
# Fuchsia, but it breaks some tests, notably in V8.
cflags += [ "-fno-sanitize=safe-stack" ]
# Force the toolchain to use shadow-call-stack instead, until that is default.
cflags += [
"-fno-sanitize=safe-stack",
"-fsanitize=shadow-call-stack",
]
libs = [ "zircon" ]
}