[PATCH 00/10] nptl: Complete libpthread removal
H.J. Lu
hjl.tools@gmail.com
Thu May 20 15:09:59 GMT 2021
On Thu, May 20, 2021 at 8:06 AM Florian Weimer via Libc-alpha
<libc-alpha@sourceware.org> wrote:
>
> * Andreas Schwab:
>
> > On Mai 20 2021, Florian Weimer wrote:
> >
> >> That is, keep libpthread.so.0 around indefinitely (with the
> >> placeholder symbols and symbol versions), and just wait until more and
> >> more binaries are linked with the empty libpthread.a and no longer
> >> have a DT_NEEDED dependency on libpthread.so.0?
> >
> > I don't see any downsides with this approach.
>
> There's a slight additional run-time overhead due to the loaded object.
> But I don't feel strongly about this.
>
> Do you think it's okay if we ship libpthread.a only, or should we
> install a no-op libpthread.so as well? -lpthread will use the .a file
> for static and dynamic links, so I think that's sufficient.
Can we ship a dummy linker script for libpthread.so to just
satisfy -lpthread at link-time?
--
H.J.
More information about the Libc-alpha
mailing list