RFR: JDK-8320005 : Allow loading of shared objects with .a extension on AIX [v15]

Joachim Kern jkern at openjdk.org
Thu Feb 8 10:48:58 UTC 2024


On Thu, 8 Feb 2024 10:38:37 GMT, Suchismith Roy <sroy at openjdk.org> wrote:

> > > > May be this is academical: Your code works for plain libraries replacing the .so extension by .a. Suppose the case the goal is to load a member of an archive libname.a(member.o), but as in the plain case you get as input libname.so(member.o). In this case you will cut of the member producing the resulting string libname.a instead of libname.a(member.o). Should this situation also be handled or is this forbidden?
> > > 
> > > 
> > > Hi Joachim I think the case for member archives exists in dl_open. It checks for braces and sets the RTLD_MEMBER flag. (Lines 1132-1134)
> > 
> > 
> > Hi Suchi, but **before** you call dll_load_library, you remove the member part in my mentioned case
> 
> Do we have a case where a .so files has braces mentioning the archive members ? I think not.

That's why I am asking. If not this is an academical concern. But it should be mentioned in a comment, that this is not expected to work.

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

PR Comment: https://git.openjdk.org/jdk/pull/16604#issuecomment-1933808741


More information about the serviceability-dev mailing list