|
@@ -28,7 +28,7 @@
|
|
|
#if (defined(__GLIBC__) && !defined(__UCLIBC__))
|
|
|
|
|
|
#include <stddef.h>
|
|
|
-#include <dmmlib/memalign.h>
|
|
|
+#include <dmmlib/dmmlib.h>
|
|
|
|
|
|
/*
|
|
|
* glibc provides the RTLD_DEEPBIND flag for dlopen which can make it possible
|
|
@@ -39,6 +39,12 @@
|
|
|
* passed an extra argument for the caller return address, which will be
|
|
|
* ignored.
|
|
|
*/
|
|
|
+
|
|
|
+void (* __free_hook)(void *ptr) = free;
|
|
|
+void *(* __malloc_hook)(size_t size) = malloc;
|
|
|
+void *(* __realloc_hook)(void *ptr, size_t size) = realloc;
|
|
|
+#ifdef WITH_MEMALIGN
|
|
|
void *(* __memalign_hook)(size_t alignment, size_t size) = memalign;
|
|
|
+#endif /* WITH_MEMALIGN */
|
|
|
|
|
|
#endif /* __GLIBC__ && !__UCLIBC__ */
|