[PATCH] Revert __malloc_initialize_hook symbol poisoning

Florian Weimer fweimer@redhat.com
Thu Jun 23 15:07:00 GMT 2016


On 06/20/2016 11:00 AM, Andreas Schwab wrote:
> fweimer@redhat.com (Florian Weimer) writes:
>
>> It turns out the Emacs-internal malloc implementation uses
>> __malloc_* symbols.  If glibc poisons them in <stdc-pre.h>,
>> Emacs will no longer compile.
>
> Please install.  I don't think we should be in the business of poisoning
> identifiers, even if they are in the implementation name space.

It is the only way to remove a symbol from the API which is used via 
interposition, which is why I went down this route in this case.

I would have done this for the other malloc hooks, but it would still 
break Emacs compatibility, so I'm just going to remove them from the header.

Florian



More information about the Libc-alpha mailing list