From c4dda6856ffaa4d8b82effb029080c25304c7a3c 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 9477e9fe7..9ba263ce0 100644 --- a/build.rs +++ b/build.rs @@ -61,7 +61,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)]