RFR: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols [v3]
suchismith1993
duke at openjdk.org
Tue Nov 21 11:52:23 UTC 2023
> The math library in AIX specifically, is a static archive. Doing a -lm wont suffice, because when the symbols are looked up using dlsym or accessing native code through Java, it will lead to failures.
> Hence we had to come up with a list of symbols to allow math library symbols to be accesible.
> Also, there are parts of libc library that are static too, and hence those symbols also are present in this list.
> Without this change, the StdLibTest and multiple other tests which make native function calls using FFI, fail with NoSuchElementException.
>
>
> 1. Adding required compiler flags.
> 2. Adding required symbols.
>
>
> JBS-ISSUE : [JDK-8317799](https://bugs.openjdk.org/browse/JDK-8317799)
suchismith1993 has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains four commits:
- Remove symbols file after using inline way.
- Provide support for math library in inline way.
- Update symbols-aix-foreign
Remove comments from export list, causes build failures.
- Symbol Resolution fix for Panama changes.
1.Adding required compiler flags.
2. Adding required symbols.
-------------
Changes: https://git.openjdk.org/jdk/pull/16414/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=16414&range=02
Stats: 179 lines in 2 files changed: 177 ins; 0 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/16414.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/16414/head:pull/16414
PR: https://git.openjdk.org/jdk/pull/16414
More information about the core-libs-dev
mailing list