nix: enable 16 KB page sizes (#6357)

* nix: enable 16 KB page sizes

* remove 16kb page from armv7a

---------

Co-authored-by: Evgeny <evgeny@poberezkin.com>
This commit is contained in:
sh
2025-10-24 15:05:24 +00:00
committed by Evgeny Poberezkin
parent 46e657834e
commit 2d917ffd54

View File

@@ -309,6 +309,7 @@
aarch64-unknown-linux-android-ghc -shared -o libsupport.so \ aarch64-unknown-linux-android-ghc -shared -o libsupport.so \
-optl-Wl,-u,setLineBuffering \ -optl-Wl,-u,setLineBuffering \
-optl-Wl,-u,pipe_std_to_socket \ -optl-Wl,-u,pipe_std_to_socket \
-optl-Wl,-z,max-page-size=16384 \
dist/build/*.a dist/build/*.a
''; '';
@@ -475,6 +476,7 @@
"-threaded" "-threaded"
# "-debug" # "-debug"
"-optl-lffi" "-optl-lffi"
"-optl-Wl,-z,max-page-size=16384"
] ]
# This is fairly idiotic. LLD will strip out foreign exported # This is fairly idiotic. LLD will strip out foreign exported
# symbols (a GHC bug? Codegen bug?). So we need to pass `-u <sym>` # symbols (a GHC bug? Codegen bug?). So we need to pass `-u <sym>`