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