Using dlmope/dlopem with RTLD_GLOBAL

Nima Hamidi nimaa.hamidi@gmail.com
Mon Feb 13 10:40:55 GMT 2023


Thanks for your quick response. Will do that once I can create an account on Bugzilla.
On Feb 13, 2023 at 4:30 AM -0600, Florian Weimer <fweimer@redhat.com>, wrote:
> * Nima Hamidi via Libc-help:
>
> > The error won’t happen if I dlopen with RTLD_LOCAL in b.cpp rather
> > than RTLD_GLOBAL. I would appreciate any help on what I’m doing wrong
> > here.
>
> I think I see what's going on. The add_to_global_resize function does
> not take into account that the global scope does not exist yet when it
> is called. Would you please file a bug in Bugzilla?
>
> <https://sourceware.org/bugzilla/enter_bug.cgi?product=glibc&component=dynamic-link>
>
> Thanks,
> Florian
>


More information about the Libc-help mailing list