[PATCH 00/10] nptl: Complete libpthread removal
H.J. Lu
hjl.tools@gmail.com
Thu May 20 15:57:22 GMT 2021
On Thu, May 20, 2021 at 8:39 AM Florian Weimer <fweimer@redhat.com> wrote:
>
> * H. J. Lu:
>
> > On Thu, May 20, 2021 at 8:17 AM Andreas Schwab <schwab@linux-m68k.org> wrote:
> >>
> >> On Mai 20 2021, H.J. Lu wrote:
> >>
> >> > Can we ship a dummy linker script for libpthread.so to just
> >> > satisfy -lpthread at link-time?
> >>
> >> -lpthread will be satisfied by libpthread.a.
> >>
> >> Andreas.
> >>
> >
> > What is the problem then? We have to keep libpthread.so.0 for existing
> > binaries. We just don't link against it for new binaries.
>
> I was a bit creative and patched the dynamic loader not to load
> libpthread.so.0 ever (treating it as a reference to libc.so.6). If we
> don't want to do that (and the consensus is moving in that direction),
> then we need to keep the DSO around as an actual file.
I think we should keep it as an actual DSO.
--
H.J.
More information about the Libc-alpha
mailing list