summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2021-01-26 21:50:04 -0800
committerPirama Arumuga Nainar <pirama@google.com>2021-01-26 21:53:25 -0800
commitcf66461582a4ca2c7a636889203ddbe8075326e7 (patch)
tree62b042a3898fce9a87bdd6350f6f4a68be35aa9a
parentba99c2d2d30ffaeab721d56570989f7457c96cea (diff)
downloadextras-cf66461582a4ca2c7a636889203ddbe8075326e7.tar.gz
Disable CFI for llvm_signal_handler
Bug: http://b/178448317 This function fails cfi check for some reason (the root cause is not known yet). Test: Verify llvm_signal_handler symbols in libvpx.so and libcodec2_soft_vp8dec.so are not built with CFI. Change-Id: I50bebf051a60e7a344885934a57205bba6703aba
-rw-r--r--toolchain-extras/Android.bp3
-rw-r--r--toolchain-extras/libprofile_clang_extras_blocklist.txt2
2 files changed, 5 insertions, 0 deletions
diff --git a/toolchain-extras/Android.bp b/toolchain-extras/Android.bp
index b49da950..ad1c4791 100644
--- a/toolchain-extras/Android.bp
+++ b/toolchain-extras/Android.bp
@@ -46,6 +46,9 @@ cc_defaults {
"profile-clang-openat.cpp",
],
native_coverage: false,
+ sanitize: {
+ blocklist: "libprofile_clang_extras_blocklist.txt",
+ },
}
cc_library_static {
diff --git a/toolchain-extras/libprofile_clang_extras_blocklist.txt b/toolchain-extras/libprofile_clang_extras_blocklist.txt
new file mode 100644
index 00000000..f1d8b891
--- /dev/null
+++ b/toolchain-extras/libprofile_clang_extras_blocklist.txt
@@ -0,0 +1,2 @@
+[cfi]
+fun:_ZL19llvm_signal_handleri