Thomas Schwinge <tho...@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.thiba...@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