From d694043542cd30863abd637606f6b047f41c4035 Mon Sep 17 00:00:00 2001 From: Vladislavs Zaluckis Date: Sat, 13 Dec 2025 18:37:37 +0200 Subject: [PATCH] android build: update linker flags for page size configuration --- scripts/function-android.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/function-android.sh b/scripts/function-android.sh index 0e4b78a7..ae609355 100755 --- a/scripts/function-android.sh +++ b/scripts/function-android.sh @@ -91,7 +91,7 @@ APP_PLATFORM := android-${API} APP_CFLAGS := -O3 -DANDROID ${LTS_BUILD_FLAG}${BUILD_DATE} -Wall -Wno-deprecated-declarations -Wno-pointer-sign -Wno-switch -Wno-unused-result -Wno-unused-variable -APP_LDFLAGS := -Wl,--hash-style=both +APP_LDFLAGS := -Wl,--hash-style=both -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=4096 EOF } @@ -482,7 +482,7 @@ get_ldflags() { fi local COMMON_LINKED_LIBS=$(get_common_linked_libraries "$1") - echo "${ARCH_FLAGS} ${OPTIMIZATION_FLAGS} ${COMMON_LINKED_LIBS} -Wl,--hash-style=both -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libunwind.a" + echo "${ARCH_FLAGS} ${OPTIMIZATION_FLAGS} ${COMMON_LINKED_LIBS} -Wl,--hash-style=both -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=4096 -Wl,--exclude-libs,libgcc.a -Wl,--exclude-libs,libunwind.a" } create_mason_cross_file() {