Add the Scudo shared library prebuilt modules.
This patch adds the libclang_rt.scudo.{}.so shared library prebuilts for arm,
aarch64, i686 & x86_64. This is required for the future use of Scudo as a
possible sanitize option for Android binaries.
Bug: 72112048
Test: aosp compiled with m -j
Test: local experiment with scudo: true to ensure that a test target
(tombstoned) could be linked with Scudo (in conjunction with
https://android-review.googlesource.com/c/platform/build/soong/+/704391)
Change-Id: I4d928d61e09017df340c5a500ba53a5b05ff5764
diff --git a/Android.bp b/Android.bp
index 6478d32..6d98814 100644
--- a/Android.bp
+++ b/Android.bp
@@ -291,6 +291,46 @@
},
}
+libclang_rt_prebuilt_library_shared {
+ name: "libclang_rt.scudo-arm-android",
+ enabled: false,
+ arch: {
+ arm: {
+ enabled: true,
+ },
+ },
+}
+
+libclang_rt_prebuilt_library_shared {
+ name: "libclang_rt.scudo-aarch64-android",
+ enabled: false,
+ arch: {
+ arm64: {
+ enabled: true,
+ },
+ },
+}
+
+libclang_rt_prebuilt_library_shared {
+ name: "libclang_rt.scudo-i686-android",
+ enabled: false,
+ arch: {
+ x86: {
+ enabled: true,
+ },
+ },
+}
+
+libclang_rt_prebuilt_library_shared {
+ name: "libclang_rt.scudo-x86_64-android",
+ enabled: false,
+ arch: {
+ x86_64: {
+ enabled: true,
+ },
+ },
+}
+
// -----------------------------------------------------------------------------
// Export shared libraries for host tools (libLLVM, libclang, libc++). These
// are exported only when the LLVM_BUILD_HOST_TOOLS environment variable is set.