From 1234511e8901e9d2b6c73cf5572af7c7a07db84f Mon Sep 17 00:00:00 2001 From: Krzysztof Zapior Date: Thu, 10 Oct 2024 08:41:52 +0200 Subject: [PATCH] LLT-5682 Research on page size 16kB Signed-off-by: Krzysztof Zapior --- .unreleased/LLT-5682_android_page_size_16kB | 0 build.rs | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 .unreleased/LLT-5682_android_page_size_16kB diff --git a/.unreleased/LLT-5682_android_page_size_16kB b/.unreleased/LLT-5682_android_page_size_16kB new file mode 100644 index 000000000..e69de29bb diff --git a/build.rs b/build.rs index d2314b64b..e9c913ccf 100644 --- a/build.rs +++ b/build.rs @@ -140,7 +140,7 @@ fn main() -> Result<()> { if target_os == "android" { let pkg_name = env!("CARGO_PKG_NAME"); let soname = format!("lib{}.so", pkg_name); - println!("cargo:rustc-cdylib-link-arg=-Wl,-soname,{}", soname); + println!("cargo:rustc-cdylib-link-arg=-Wl,-z,max-page-size=16384,-soname,{}", soname); } #[cfg(windows)]