dlmopen and variables in the dynamic loader

Zack Weinberg zackw@panix.com
Fri Aug 16 13:04:00 GMT 2019


On Fri, Aug 16, 2019 at 7:44 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> dlmopen carefully replicates the initial ld.so in all namespaces.
> Unlike libc.so, ld.so is only loaded once.  This can be used to share
> state across all namespaces.

Is it possible that we should change this, and load libc.so only once
as well?  (And maybe also libpthread and libgcc_s?  I guess at that
point we need to invent a DT_ONLY_LOAD_ME_ONCE tag...)

zw



More information about the Libc-alpha mailing list