On 06.08.2024 07:31, Eric Raible wrote:
Sorry for the self-reply, but I'm still trying to figure this out.
One more piece of information: using -vv I can see that
libm.so is only listed as being loaded one time.

After that, it is available, but is not listed.  Which is weird, b.c.
libc.so (for instance) is listed as being loaded every time.

Can anyone help me understand what's going on with this?
It really makes no sense to me.

Hi,

tcc -run usage of shared libraries depends on the behavior of the
dlfcn functions:

    tcc_add_library -> dlopen at libtcc.c:1085
    zcc_relocate -> dlsym at tccelf.c:1046
    tcc_delete -> dlclose at tccrun.c:179

I'd assume that some systems might under circumstances prefer to keep
the SO in memory even when after dlclose it's refcount drops to zero.

-- gr

Thanks!
- Eric


_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to