Disable MTE when copying stack.
Bug: 163134539
Change-Id: I3afb4e1afeb2c2aa0b7e24e0b95d0a161b180ea1
diff --git a/tools/gen_android_bp b/tools/gen_android_bp
index c26b284..fb2c7e3 100755
--- a/tools/gen_android_bp
+++ b/tools/gen_android_bp
@@ -165,7 +165,6 @@
'heapprofd_client_api': [
('include_dirs', {'bionic/libc'}),
('static_libs', {'libasync_safe'}),
- ('header_libs', {'bionic_libc_platform_headers'}),
# heapprofd_client_api MUST NOT have global constructors. Because it
# is loaded in an __attribute__((constructor)) of libc, we cannot
# guarantee that the global constructors get run before it is used.
@@ -175,7 +174,6 @@
'heapprofd_client': [
('include_dirs', {'bionic/libc'}),
('static_libs', {'libasync_safe'}),
- ('header_libs', {'bionic_libc_platform_headers'}),
],
'heapprofd_standalone_client': [
('static_libs', {'libasync_safe'}),
@@ -272,6 +270,9 @@
def enable_uapi_headers(module):
module.include_dirs.add('bionic/libc/kernel')
+def enable_bionic_libc_platform_headers_on_android(module):
+ module.header_libs.add('bionic_libc_platform_headers')
+
# Android equivalents for third-party libraries that the upstream project
# depends on.
@@ -288,6 +289,8 @@
'//gn:sqlite': enable_sqlite,
'//gn:zlib': enable_zlib,
'//gn:bionic_kernel_uapi_headers' : enable_uapi_headers,
+ '//src/profiling/memory:bionic_libc_platform_headers_on_android':
+ enable_bionic_libc_platform_headers_on_android,
}
# ----------------------------------------------------------------------------