about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2020-06-10 22:02:45 -0400
committerRich Felker <dalias@aerifal.cx>2020-06-10 22:02:45 -0400
commite9f4fd1185badfc005fcfe5c7de27d58baec057c (patch)
tree95225d8a1d333cba4680711f499912a654cf0299 /src
parent25cef5c591fbee755a53f0d7920f4f554f343a53 (diff)
downloadmusl-e9f4fd1185badfc005fcfe5c7de27d58baec057c.tar.gz
musl-e9f4fd1185badfc005fcfe5c7de27d58baec057c.tar.xz
musl-e9f4fd1185badfc005fcfe5c7de27d58baec057c.zip
have ldso track replacement of aligned_alloc
this is in preparation for improving behavior of malloc interposition.
Diffstat (limited to 'src')
-rw-r--r--src/internal/dynlink.h1
-rw-r--r--src/malloc/replaced.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/internal/dynlink.h b/src/internal/dynlink.h
index 78baa080..51c0639f 100644
--- a/src/internal/dynlink.h
+++ b/src/internal/dynlink.h
@@ -106,6 +106,7 @@ hidden void __dl_vseterr(const char *, va_list);
 hidden ptrdiff_t __tlsdesc_static(), __tlsdesc_dynamic();
 
 hidden extern int __malloc_replaced;
+hidden extern int __aligned_alloc_replaced;
 hidden void __malloc_donate(char *, char *);
 hidden int __malloc_allzerop(void *);
 
diff --git a/src/malloc/replaced.c b/src/malloc/replaced.c
index 8acc249c..07fce61e 100644
--- a/src/malloc/replaced.c
+++ b/src/malloc/replaced.c
@@ -1,3 +1,4 @@
 #include "dynlink.h"
 
 int __malloc_replaced;
+int __aligned_alloc_replaced;