Browse Source

feat: 16k page sizes (#211)

see https://developer.android.com/guide/practices/page-sizes

Reviewed-on: https://gitea.angry.im/PeterCxy/OpenEUICC/pulls/211
Co-authored-by: septs <github@septs.pw>
Co-committed-by: septs <github@septs.pw>
septs 5 months ago
parent
commit
72ec20f824

+ 2 - 1
libs/lpac-jni/src/main/jni/Application.mk

@@ -1,4 +1,5 @@
 APP_ABI := all
 APP_SHORT_COMMANDS := true
 APP_CFLAGS := -Wno-compound-token-split-by-macro
-APP_LDFLAGS := -Wl,--build-id=none -z muldefs
+APP_LDFLAGS := -Wl,--build-id=none -z muldefs
+APP_SUPPORT_FLEXIBLE_PAGE_SIZES := true

+ 1 - 0
libs/lpac-jni/src/main/jni/lpac-jni.mk

@@ -1,4 +1,5 @@
 LOCAL_PATH := $(call my-dir)
+LOCAL_LDFLAGS += "-Wl,-z,max-page-size=16384"
 
 # function to find all *.c files under a directory
 define all-c-files-under