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

Jorn Vernee jvernee at openjdk.org
Fri Nov 17 14:36:36 UTC 2023


On Fri, 17 Nov 2023 13:02:22 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:

> My understanding is that a lot of symbols can be found out of the box because they are in dynamically linked libraries. Only some libraries are special on AIX which don't support dynamic linking and we need this workaround for them.

That doesn't sound too dissimilar from the situation on Windows: most of the symbols we can dynamically look up in `ucrtbase.dll`, but some symbols are 'inline', so we create our own library that re-exports these functions through a table of addresses (take a look at `/src/java.base/windows/native/libsyslookup/syslookup.c`

Maybe something similar could be done on AIX: i.e. include a fallback library that statically links the missing functions, and then re-exports them through a table or addresses.

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

PR Comment: https://git.openjdk.org/jdk/pull/16414#issuecomment-1816538275


More information about the build-dev mailing list