bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCHv2,HURD] Add fork hooks for pthread_atfork


From: Ludovic Courtès
Subject: Re: [PATCHv2,HURD] Add fork hooks for pthread_atfork
Date: Sat, 05 Apr 2014 22:09:08 +0200
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]