blob: a63bbe660504362db7fb7f16d0a98b60eada1e0e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
[WRAPPER] Improved dlsym wrapped function, will find more symbols from emulated libs regression
Hi,
Reproduce for AArch64:
```
/yourpath/build/box64 /yourpath/x64-jdk23/bin/java -Djna.prefix=linux-x86-64 -Djava.library.path=. -cp .:jna-5.11.0.jar JnaDemo
```
Expected output:
```
Hello, World from JNA!
JNA supports Java 8!
```
Actual output:
```
Exception in thread "main" java.lang.UnsatisfiedLinkError: Error looking up function 'printf': Symbol "printf" not found in 0x8)
```
[JNA test](https://github.com/java-native-access/jna/blob/master/test/com/sun/jna/FunctionTest.java) Reduced Testcase[1] works after reverted the commit https://github.com/ptitSeb/box64/commit/ae1739f33070b2733b5472723e8f449234bb2c6d
1. [test-jna.tar.gz](https://github.com/user-attachments/files/18033700/test-jna.tar.gz)
Thanks,
Leslie Zhai
|