This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] Provide pthread_atfork in libc_nonshared.a and libc.a.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Rich Felker <dalias at aerifal dot cx>
- Cc: "Carlos O'Donell" <carlos at redhat dot com>, GNU C Library <libc-alpha at sourceware dot org>, Roland McGrath <roland at hack dot frob dot com>
- Date: Thu, 3 Oct 2013 08:18:27 +0200
- Subject: Re: [PATCH] Provide pthread_atfork in libc_nonshared.a and libc.a.
- Authentication-results: sourceware.org; auth=none
- References: <524C90A1 dot 6050801 at redhat dot com> <524CC8BA dot 6050602 at redhat dot com> <20131003052910 dot GV30970 at tucnak dot zalov dot cz> <20131003061602 dot GI20515 at brightrain dot aerifal dot cx>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Oct 03, 2013 at 02:16:02AM -0400, Rich Felker wrote:
> The weak references are just wrong. Instead, the library should have
> strong references to symbols with weak _definitions_ in either (a
> hypothetical dependency) libpthread_stubs.so or libc.so that do
> nothing, and that get overridden by the strong definitions in
> libpthread.so. Or we could just do away with the silliness of having
> these functions in a separate .so file, make libpthread.so a stub, and
> put everything in libc.so. For this to work for glibc, though, a lot
> of mess with symbol versioning would be needed. In musl, it was easy.
Feel free to do it in musl if you like it; though, this constant musl
marketing IMNSHO doesn't belong to this list.