Skip to content

Commit 5305913

Browse files
Merge pull request #1654 from matthiasblaesing/common_page_size_android
Set common-page-size to 16384 for android builds
2 parents 4b091e6 + 0793e8b commit 5305913

10 files changed

+3
-2
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Features
1010

1111
Bug Fixes
1212
---------
13+
* [#1647](https://github.com/java-native-access/jna/issues/1647): Fix calls to jnidispatch on Android with 16KB page size (part 2) - [@BugsBeGone](https://github.com/BugsBeGone).
1314

1415

1516
Release 5.16.0

common.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<!-- jnidispatch library release version -->
2323
<property name="jni.major" value="7"/>
2424
<property name="jni.minor" value="0"/>
25-
<property name="jni.revision" value="3"/>
25+
<property name="jni.revision" value="4"/>
2626
<property name="jni.build" value="0"/> <!--${build.number}-->
2727
<property name="jni.version" value="${jni.major}.${jni.minor}.${jni.revision}"/>
2828
<property name="jni.md5" value="5fb98531302accd485c534c452dd952a"/>

lib/native/android-aarch64.jar

122 Bytes
Binary file not shown.

lib/native/android-arm.jar

-8 Bytes
Binary file not shown.

lib/native/android-armv7.jar

-5 Bytes
Binary file not shown.

lib/native/android-mips.jar

159 Bytes
Binary file not shown.

lib/native/android-mips64.jar

36 Bytes
Binary file not shown.

lib/native/android-x86-64.jar

-7 Bytes
Binary file not shown.

lib/native/android-x86.jar

-7 Bytes
Binary file not shown.

native/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ COPT+=-fpic -ffunction-sections -funwind-tables -fno-short-enums
181181
JAVA_INCLUDES=
182182
CINCLUDES+=-I"$(NDK_PLATFORM)/arch-$(AARCH)/usr/include" # -I/usr/include
183183
LIBS=-nostdlib -L"$(NDK_PLATFORM)/arch-$(AARCH)$(ALIBDIR)/" -lgcc -lc -ldl -lm
184-
LDFLAGS+=-Wl,-shared,-Bsymbolic -Wl,--build-id=sha1 -Wl,-z,max-page-size=16384
184+
LDFLAGS+=-Wl,-shared,-Bsymbolic -Wl,--build-id=sha1 -Wl,-z,max-page-size=16384 -Wl,-z,common-page-size=16384
185185
FFI_ENV=CPP="$(CPP)" CC="$(CC)" CFLAGS="$(COPT) $(CDEBUG) $(CINCLUDES)" CPPFLAGS="$(CDEFINES) $(CINCLUDES)" LIBS="$(LIBS)" RANLIB="$(RANLIB)"
186186
FFI_CONFIG=--enable-static --disable-shared --with-pic=yes --host=$(HOST)
187187
endif

0 commit comments

Comments
 (0)