From: Rich Felker Date: Thu, 11 Jun 2020 00:42:54 +0000 (-0400) Subject: move __malloc_replaced to a top-level malloc file X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=501a92660ca2ed6469a0a01474574ce9930356cd;p=musl move __malloc_replaced to a top-level malloc file it's not part of the malloc implementation but glue with musl dynamic linker. --- diff --git a/src/malloc/oldmalloc/malloc.c b/src/malloc/oldmalloc/malloc.c index afa75722..1c6b07ec 100644 --- a/src/malloc/oldmalloc/malloc.c +++ b/src/malloc/oldmalloc/malloc.c @@ -20,8 +20,6 @@ static struct { volatile int split_merge_lock[2]; } mal; -int __malloc_replaced; - /* Synchronization tools */ static inline void lock(volatile int *lk) diff --git a/src/malloc/replaced.c b/src/malloc/replaced.c new file mode 100644 index 00000000..8acc249c --- /dev/null +++ b/src/malloc/replaced.c @@ -0,0 +1,3 @@ +#include "dynlink.h" + +int __malloc_replaced;