[PATCH v2] malloc: Remove malloc hooks (Bug 23328)

Florian Weimer fweimer@redhat.com
Tue Jul 24 07:22:00 GMT 2018


On 07/23/2018 10:46 PM, Carlos O'Donell wrote:

> With that in mind I'll continue to follow a staggered approach:
> 
> * A release with libmalloc-extras.so.0 for LD_PRELOAD (2.28)
> * Gain experience with libmalloc-extras.so.0 usage (Future)
> * Potentially provide a libmalloc-extras.so for direct linking (Future)
> 
> The notion of providing an "official" interposer still appeals to me
> from the perspective that it can deliver features we would not normally
> turn on in regular libc.so.6's malloc API.

Okay, then we should provide a libmalloc-extras.so.0 which is properly 
isolated (no public internal symbols), has proper symbol versions 
(matching those of libc.so.6), without default symbol versions.

The current DSO does not use symbol versioning and exports internals 
such as mtrace_extras_ctor.  These things really need to be fixed.

Thanks,
Florian



More information about the Libc-alpha mailing list