Commit 158dcfc1 by Ivan Krasin

Disable CFI on SwiftShader's libEGL.

BUG=chromium:686980 Change-Id: I0224093fbbffb2bac8a84c95a8370617c4df6978 Reviewed-on: https://swiftshader-review.googlesource.com/9309Tested-by: 's avatarIvan Krasin <krasin@chromium.org> Reviewed-by: 's avatarNicolas Capens <capn@google.com>
parent 628a8496
...@@ -88,7 +88,12 @@ shared_library("swiftshader_libEGL") { ...@@ -88,7 +88,12 @@ shared_library("swiftshader_libEGL") {
# https://crbug.com/686980 # https://crbug.com/686980
# This target relies on the linker to be smart and garbage collect unused symbols. # This target relies on the linker to be smart and garbage collect unused symbols.
# It is not the case for LLD + ThinLTO, so we have to use this ugly workaround. # It is not the case for LLD + ThinLTO, so we have to use this ugly workaround.
cflags = ["-Xclang", "-fno-lto-unit"] cflags = [
"-Xclang",
"-fno-lto-unit",
"-fno-whole-program-vtables",
"-fno-sanitize=cfi",
]
} }
configs -= [ "//build/config/compiler:chromium_code" ] configs -= [ "//build/config/compiler:chromium_code" ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment