move __malloc_replaced to a top-level malloc file

it's not part of the malloc implementation but glue with musl dynamic
linker.
This commit is contained in:
Rich Felker 2020-06-10 20:42:54 -04:00
parent 28f64fa6ca
commit 501a92660c
2 changed files with 3 additions and 2 deletions

View file

@ -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)

3
src/malloc/replaced.c Normal file
View file

@ -0,0 +1,3 @@
#include "dynlink.h"
int __malloc_replaced;