[PATCH v3 2/2] malloc: aarch64: Add ifuncs for malloc functions

Wilco Dijkstra Wilco.Dijkstra@arm.com
Wed Aug 19 12:11:14 GMT 2026


Hi Yury,

> Introduce ifuncs and resolvers for functions pertinent to the
> malloc interface on the AArch64 target: malloc, calloc, free,
> realloc, memalign, valloc, pvalloc, posix_memalign, aligned_alloc,
> free_sized, free_aligned_sized, malloc_usable_size.
>
> A target can define the USE_MULTIARCH_MALLOC macro. In this case
> it must provide alternative aliases for the malloc functions that
> point to the ifuncs.
>
> This implementation respects the --disable-multi-arch configure
> flag. If multi-arch support is disabled, the generic aliases
> are used on aarch64.
>
> This patch contains aarch64-specific resolvers. At this point they
> return core implementations but in the future they can be changed
> to support for features, e.g. to handle memory tagging.

LGTM.

Reviewed-by: Wilco Dijkstra  <Wilco.Dijkstra@arm.com>

Cheers,
Wilco



More information about the Libc-alpha mailing list