This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCHv2,HURD] Add fork hooks for pthread_atfork
- From: ludo at gnu dot org (Ludovic CourtÃs)
- To: Thomas Schwinge <thomas at codesourcery dot com>
- Cc: Samuel Thibault <samuel dot thibault at gnu dot org>, Manolis Ragkousis <manolis837 at gmail dot com>, Justus Winter <4winter at informatik dot uni-hamburg dot de>, <bug-hurd at gnu dot org>, <libc-alpha at sourceware dot org>, <alicia at ion dot nu>, Roland McGrath <roland at hack dot frob dot com>
- Date: Sat, 05 Apr 2014 22:09:08 +0200
- Subject: Re: [PATCHv2,HURD] Add fork hooks for pthread_atfork
- Authentication-results: sourceware.org; auth=none
- References: <20110619130724 dot GV6349 at const dot famille dot thibault dot fr> <20130921212355 dot GV30838 at type dot youpi dot perso dot aquilenet dot fr> <20130924210815 dot GA31468 at type dot youpi dot perso dot aquilenet dot fr> <20120510233252 dot GO4259 at type dot famille dot thibault dot fr> <878uvfmwvs dot fsf at kepler dot schwinge dot homeip dot net> <20131220210542 dot 9CD707442F at topped-with-meat dot com> <20140225055509 dot GI6413 at type dot globalsuite dot net> <20140303233652 dot 9AE797444B at topped-with-meat dot com> <20140304014012 dot GN5595 at type dot youpi dot perso dot aquilenet dot fr> <CAFtzXzNgS8KEwRJO74SF7zZPMnwFkW_m1qvir6y7-WNwaKEsWQ at mail dot gmail dot com> <87ob0f952b dot fsf at schwinge dot name>
Thomas Schwinge <thomas@codesourcery.com> skribis:
> Manolis has hit this issue again,
> <http://news.gmane.org/find-root.php?message_id=%3CCAFtzXzNgS8KEwRJO74SF7zZPMnwFkW_m1qvir6y7-WNwaKEsWQ%40mail.gmail.com%3E>.
>
> On Tue, 4 Mar 2014 02:40:12 +0100, Samuel Thibault <samuel.thibault@gnu.org> wrote:
>> Roland McGrath, le Mon 03 Mar 2014 15:36:52 -0800, a Ãcrit :
>> > > Roland McGrath, le Fri 20 Dec 2013 13:05:42 -0800, a ,Aicrit :
>> > > > The linker is supposed to define those symbols automagically.
>> > > > Did it break?
The mechanism does work on GNU/Linux, for instance with the
__libc_subfreeres hook:
--8<---------------cut here---------------start------------->8---
$ objdump -t libc-2.19.so | grep -E '__(stop|start).*libc_subfreeres'
000000000039f750 l .dtors 0000000000000000 __start___libc_subfreeres
000000000039f840 l __libc_subfreeres 0000000000000000 __stop___libc_subfreeres
--8<---------------cut here---------------end--------------->8---
Manolis: could you add an #error in libc-symbols.h to make sure the
non-empty definition of âDEFINE_HOOKâ is getting used?
Thanks,
Ludoâ.