Fix CFI initialization crash on x86.
Bug: 34752378
Test: bionic tests
Change-Id: If8e33f76a1a2d83356d818fed506ea624f579860
diff --git a/tests/libs/Android.bp b/tests/libs/Android.bp
index b5855af..9f9c407 100644
--- a/tests/libs/Android.bp
+++ b/tests/libs/Android.bp
@@ -494,3 +494,20 @@
cfi: false,
},
}
+
+cc_test {
+ name: "cfi_test_helper",
+ host_supported: false,
+ defaults: ["bionic_testlib_defaults"],
+ srcs: ["cfi_test_helper.cpp"],
+ ldflags: [" -Wl,-export-dynamic-symbol=__cfi_check"],
+}
+
+cc_test {
+ name: "cfi_test_helper2",
+ host_supported: false,
+ defaults: ["bionic_testlib_defaults"],
+ srcs: ["cfi_test_helper2.cpp"],
+ shared_libs: ["libcfi-test"],
+ ldflags: ["-Wl,--rpath,${ORIGIN}/.."],
+}