From 239aa4ef83f06fd657d0c0aa04506599722ce1ff Mon Sep 17 00:00:00 2001 From: awxy Date: Fri, 18 Jul 2025 15:05:01 +0800 Subject: [PATCH] feat:Support 16 KB page sizes --- xcrash_lib/src/main/cpp/CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/xcrash_lib/src/main/cpp/CMakeLists.txt b/xcrash_lib/src/main/cpp/CMakeLists.txt index 602a7dc..357e6c4 100644 --- a/xcrash_lib/src/main/cpp/CMakeLists.txt +++ b/xcrash_lib/src/main/cpp/CMakeLists.txt @@ -29,8 +29,10 @@ target_include_directories(xcrash PUBLIC target_link_libraries(xcrash log - dl) - + dl + "-Wl,-z,max-page-size=16384" + "-Wl,-z,common-page-size=16384" +) if(USEASAN) target_compile_options(xcrash PUBLIC @@ -111,7 +113,10 @@ target_include_directories(xcrash_dumper PUBLIC target_link_libraries(xcrash_dumper log - dl) + dl + "-Wl,-z,max-page-size=16384" + "-Wl,-z,common-page-size=16384" +) if(USEASAN)