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: [PATCH] malloc: Remove __malloc_initialize_hook from the API [BZ #19564]


On 05/24/2016 07:26 PM, DJ Delorie wrote:

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?

I don't see how. The symbol is interposed from application code. This means that the symbol won't have any linker magic attached to it. We can't trigger on the existence of a symbol, either, I think, so tricks with libc_nonshared.a aren't an option, either.

I'd love to do something less drastic here, but I just don't see any other approach to remove the symbol from the API (but not the ABI).

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.

Right, I'll make it consistent.

Thanks,
Florian


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