On Tue, 6 Feb 2024 10:26:36 GMT, Joachim Kern <jk...@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

Reply via email to