Enable native_bridge_support Enable native bridge support for bionic libraries. Makes it possible to use them in binaries for translated architectures. Bug: http://b/77159578 Test: make Change-Id: Iccd4ad7aecfa5260cc15f09ca975d2e18987278a
diff --git a/libc/Android.bp b/libc/Android.bp index fa1eab6..5554f28 100644 --- a/libc/Android.bp +++ b/libc/Android.bp
@@ -76,6 +76,7 @@ }, native_coverage: false, recovery_available: true, + native_bridge_supported: true, // lld complains about duplicate symbols in libcrt and libgcc. Suppress the // warning since this is intended right now. @@ -1692,6 +1693,7 @@ host_supported: true, vendor_available: true, recovery_available: true, + native_bridge_supported: true, no_libcrt: true, no_libgcc: true, @@ -1824,6 +1826,7 @@ defaults: ["linux_bionic_supported"], vendor_available: true, recovery_available: true, + native_bridge_supported: true, cflags: [ "-Wno-gcc-compat", @@ -2082,6 +2085,7 @@ ndk_library { name: "libc", + native_bridge_supported: true, symbol_file: "libc.map.txt", first_version: "9", } @@ -2091,6 +2095,7 @@ symbol_file: "libc.map.txt", export_headers_as_system: true, export_preprocessed_headers: ["include"], + native_bridge_supported: true, export_include_dirs: [ "kernel/android/uapi", "kernel/uapi",
diff --git a/libc/async_safe/Android.bp b/libc/async_safe/Android.bp index fbaaad1..c28d53a 100644 --- a/libc/async_safe/Android.bp +++ b/libc/async_safe/Android.bp
@@ -10,6 +10,7 @@ name: "libasync_safe", vendor_available: true, recovery_available: true, + native_bridge_supported: true, include_dirs: ["bionic/libc"], header_libs: ["libc_headers", "liblog_headers"], @@ -22,6 +23,7 @@ cc_library_headers { name: "libasync_safe_headers", recovery_available: true, + native_bridge_supported: true, defaults: ["linux_bionic_supported"], export_include_dirs: ["include"],
diff --git a/libc/system_properties/Android.bp b/libc/system_properties/Android.bp index 911afb1..8780dda 100644 --- a/libc/system_properties/Android.bp +++ b/libc/system_properties/Android.bp
@@ -1,6 +1,7 @@ cc_library_static { name: "libsystemproperties", defaults: ["libc_defaults"], + native_bridge_supported: true, srcs: [ "context_node.cpp", "contexts_split.cpp",
diff --git a/libdl/Android.bp b/libdl/Android.bp index b1ee5ab..cf723be 100644 --- a/libdl/Android.bp +++ b/libdl/Android.bp
@@ -5,6 +5,7 @@ name: "libdl_static", defaults: ["linux_bionic_supported"], recovery_available: true, + native_bridge_supported: true, srcs: [ "libdl.cpp", @@ -32,6 +33,7 @@ cc_library { name: "libdl", recovery_available: true, + native_bridge_supported: true, static_ndk_lib: true, defaults: ["linux_bionic_supported"], @@ -115,6 +117,7 @@ defaults: ["linux_bionic_supported"], recovery_available: true, + native_bridge_supported: true, // NOTE: --exclude-libs=libgcc.a makes sure that any symbols libdl.so pulls from // libgcc.a are made static to libdl.so. This in turn ensures that libraries that @@ -179,12 +182,14 @@ ndk_library { name: "libdl", + native_bridge_supported: true, symbol_file: "libdl.map.txt", first_version: "9", } llndk_library { name: "libdl", + native_bridge_supported: true, symbol_file: "libdl.map.txt", }
diff --git a/libm/Android.bp b/libm/Android.bp index 8c32810..48b9a5f 100644 --- a/libm/Android.bp +++ b/libm/Android.bp
@@ -507,6 +507,7 @@ integer_overflow: false, }, stl: "none", + native_bridge_supported: true, stubs: { symbol_file: "libm.map.txt", @@ -516,12 +517,14 @@ ndk_library { name: "libm", + native_bridge_supported: true, symbol_file: "libm.map.txt", first_version: "9", } llndk_library { name: "libm", + native_bridge_supported: true, symbol_file: "libm.map.txt", }
diff --git a/linker/Android.bp b/linker/Android.bp index 95fd4f7..22055f6 100644 --- a/linker/Android.bp +++ b/linker/Android.bp
@@ -2,6 +2,7 @@ name: "liblinker_malloc", defaults: ["linux_bionic_supported"], recovery_available: true, + native_bridge_supported: true, srcs: [ "linker_memory.cpp", @@ -360,6 +361,7 @@ name: "ld-android", defaults: ["linux_bionic_supported"], recovery_available: true, + native_bridge_supported: true, nocrt: true, system_shared_libs: [],