0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-17 07:20:55 +01:00

ircd::allocator: Mark hook stubs as weak symbols.

This commit is contained in:
Jason Volk 2019-10-05 17:54:46 -07:00
parent 2b2374db6c
commit f3d1f50f0e

View file

@ -338,10 +338,10 @@ operator delete(void *const ptr,
// Linker symbol wrapping hook // Linker symbol wrapping hook
// //
extern "C" void *__real_malloc(size_t size); extern "C" [[gnu::weak]] void *__real_malloc(size_t size);
extern "C" void *__real_calloc(size_t nmemb, size_t size); extern "C" [[gnu::weak]] void *__real_calloc(size_t nmemb, size_t size);
extern "C" void *__real_realloc(void *ptr, size_t size); extern "C" [[gnu::weak]] void *__real_realloc(void *ptr, size_t size);
extern "C" void __real_free(void *ptr); extern "C" [[gnu::weak]] void __real_free(void *ptr);
extern "C" void * extern "C" void *
__wrap_malloc(size_t size) __wrap_malloc(size_t size)