On Thu, 8 Feb 2024 10:46:37 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) > > > > > > > > > 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. Yes, but i was also asking if at all there is a case ,which i am not aware of. Sure i will mention it in comments. But there is one case that keep me thinking, is that ..will a particular .so file have an .a file with same name, but also referred to a member ? ------------- PR Comment: https://git.openjdk.org/jdk/pull/16604#issuecomment-1933833986