This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] malloc: Remove __malloc_initialize_hook from the API [BZ #19564]
- From: DJ Delorie <dj at redhat dot com>
- To: Florian Weimer <fweimer at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Tue, 24 May 2016 13:26:19 -0400
- Subject: Re: [PATCH] malloc: Remove __malloc_initialize_hook from the API [BZ #19564]
- Authentication-results: sourceware.org; auth=none
- References: <5c9da5b0-d548-0fa7-9264-c0fc5bd65039 at redhat dot com>
Is there any way we could mark this in the ABI itself so that attempts
to link against obsolete hooks only work if you've selected an older
ABI, but fail with a suitable warning if you link against a new ABI? It
looks like a recompile would be needed to provide backwards
compatibility. (assuming we want to provide this feature at all, but is
a link-warning-free-but-doesnt-do-anything solution better than "old
apps don't build" ?)
The new malloc-hooks.h doesn't match the poison list in stdc-predef.h.
I assume that's "not yet" but the patch should be internally consistent.