From 94874781ae3cd74ff5799a727e344783ab81dbbe Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Wed, 5 Oct 2022 16:31:40 -0400 Subject: [PATCH] src/jemalloc.c: Use GCC's copy() to duplicate all attributes --- src/jemalloc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jemalloc.c b/src/jemalloc.c index 60fb901f..134a35c3 100644 --- a/src/jemalloc.c +++ b/src/jemalloc.c @@ -3334,7 +3334,7 @@ JEMALLOC_EXPORT void *(*__memalign_hook)(size_t alignment, size_t size) = * be implemented also, so none of glibc's malloc.o functions are added to the * link. */ -# define ALIAS(je_fn) __attribute__((alias (#je_fn), used)) +# define ALIAS(je_fn) __attribute__((alias (#je_fn), copy(je_fn))) /* To force macro expansion of je_ prefix before stringification. */ # define PREALIAS(je_fn) ALIAS(je_fn) # ifdef JEMALLOC_OVERRIDE___LIBC_CALLOC