This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]