On Fri, 17 Nov 2023 13:02:22 GMT, Martin Doerr <mdo...@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

Reply via email to