Integrated: JDK-8317799 : AIX PPC64: FFI symbol lookup doesn't find symbols

suchismith1993 duke at openjdk.org
Wed Nov 22 15:46:27 UTC 2023


On Mon, 30 Oct 2023 10:54:48 GMT, suchismith1993 <duke at openjdk.org> wrote:

> 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)

This pull request has now been integrated.

Changeset: 25cebe8c
Author:    suchismith1993 <suchismith1993 at gmail.com>
Committer: Amit Kumar <amitkumar at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/25cebe8c3ed5c03b4da2da5bb2f7637c8cd40581
Stats:     206 lines in 2 files changed: 206 ins; 0 del; 0 mod

8317799: AIX PPC64: FFI symbol lookup doesn't find symbols

Reviewed-by: mdoerr, ihse, dholmes, jvernee

-------------

PR: https://git.openjdk.org/jdk/pull/16414


More information about the core-libs-dev mailing list