Skip to content

Commit 0cf99e1

Browse files
committed
use 16KiB section alignment in native shared libraries
1 parent d0d1fbb commit 0cf99e1

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.github/workflows/native-lib.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ jobs:
88
strategy:
99
matrix:
1010
os: [ubuntu-24.04-arm]
11-
bin: [peergos]
12-
exclude:
13-
- os: ubuntu-24.04-arm
14-
bin: peergos.exe
1511
fail-fast: false
1612
steps:
1713
- uses: actions/checkout@v4

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ test: compile
2929
.PHONY: jni
3030
jni: compile
3131
javah -jni -classpath build -d jni peergos.server.crypto.JniTweetNacl
32-
gcc -O2 -Wimplicit-function-declaration -fPIC -std=c11 -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -Inative -Ijni -shared -o libtweetnacl.so jni/peergos_server_crypto_JniTweetNacl.c
32+
gcc -O2 -Wl,-z,max-page-size=16384 -Wimplicit-function-declaration -fPIC -std=c11 -I${JAVA_HOME}/include -I${JAVA_HOME}/include/linux -Inative -Ijni -shared -o libtweetnacl.so jni/peergos_server_crypto_JniTweetNacl.c
3333

3434
.PHONY: jni_tests
3535
jni_tests: def

0 commit comments

Comments
 (0)