This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: dlmopen and variables in the dynamic loader
- From: Zack Weinberg <zackw at panix dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 16 Aug 2019 09:04:20 -0400
- Subject: Re: dlmopen and variables in the dynamic loader
- References: <87zhk91gjk.fsf@oldenburg2.str.redhat.com>
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