RFR: JDK-8320005 :  Allow loading of shared objects with .a extension on AIX [v15]
    Suchismith Roy 
    sroy at openjdk.org
       
    Thu Feb  8 10:25:58 UTC 2024
    
    
  
On Tue, 6 Feb 2024 10:26:36 GMT, Joachim Kern <jkern 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)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/16604#issuecomment-1933769585
    
    
More information about the serviceability-dev
mailing list