[PATCH v2 0/2] malloc: introduce ifuncs for malloc functions

Yury Khrustalev yury.khrustalev@arm.com
Tue May 19 15:38:36 GMT 2026


Hello DJ,

On Mon, Apr 20, 2026 at 03:14:57PM +0100, Yury Khrustalev wrote:
> See commit message for details. In a nutshell, we want to add ifuncs
> for the functions related to the malloc API (on targets that support
> ifuncs). This will allow to add alternative (e.g. target-specific)
> implementations for these functions.
> 
> The following aspects have been considered:
> 
> 1) Generic resolvers that return core implementations. These will be
>    used for most targets that don't provide their custome resolvers.
> 
> 2) Allow targets to provide their own resolvers (e.g. aarch64 may use
>    this to implement resolvers that return memory tagging implementations
>    when this is supported and requested).
> 
> 3) For the targets without ifunc support there is no functional change.
> 
> Passes regression on aarch64 and x86-64 and has been build-tested using
> the build-many-glibcs script for various targets including those without
> ifunc support. OK for trunk?

I've be sending v3 shortly (the caveat is that I want v3 to be based on
[1] that is still under review...)

I realised that the change will become smaller if I make it aarch64-only.
In addition, I will have to fix the problem with the --disable-multi-arch
configure flag that v2 of this patch currently has.

Thanks,
Yury



More information about the Libc-alpha mailing list