mirror of
git://sourceware.org/git/glibc.git
synced 2026-09-08 23:58:31 +08:00
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. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
/* Definitions for ifunc resolvers for malloc: aarch64 version.
|
|
Copyright (C) 2026 Free Software Foundation, Inc.
|
|
This file is part of the GNU C Library.
|
|
|
|
The GNU C Library is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU Lesser General Public
|
|
License as published by the Free Software Foundation; either
|
|
version 2.1 of the License, or (at your option) any later version.
|
|
|
|
The GNU C Library is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Lesser General Public License for more details.
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
License along with the GNU C Library; if not, see
|
|
<https://www.gnu.org/licenses/>. */
|
|
|
|
#ifndef _AARCH64_MALLOC_IFUNCS_H
|
|
#define _AARCH64_MALLOC_IFUNCS_H
|
|
|
|
/* AArch64 target provides ifuncs for malloc functions. */
|
|
#define USE_MULTIARCH_MALLOC 1
|
|
|
|
#endif /* _AARCH64_MALLOC_IFUNCS_H */
|