mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 16:22:35 +01:00
ircd::allocator: Mark hook stubs as weak symbols.
This commit is contained in:
parent
2b2374db6c
commit
f3d1f50f0e
1 changed files with 4 additions and 4 deletions
|
@ -338,10 +338,10 @@ operator delete(void *const ptr,
|
|||
// Linker symbol wrapping hook
|
||||
//
|
||||
|
||||
extern "C" void *__real_malloc(size_t size);
|
||||
extern "C" void *__real_calloc(size_t nmemb, size_t size);
|
||||
extern "C" void *__real_realloc(void *ptr, size_t size);
|
||||
extern "C" void __real_free(void *ptr);
|
||||
extern "C" [[gnu::weak]] void *__real_malloc(size_t size);
|
||||
extern "C" [[gnu::weak]] void *__real_calloc(size_t nmemb, size_t size);
|
||||
extern "C" [[gnu::weak]] void *__real_realloc(void *ptr, size_t size);
|
||||
extern "C" [[gnu::weak]] void __real_free(void *ptr);
|
||||
|
||||
extern "C" void *
|
||||
__wrap_malloc(size_t size)
|
||||
|
|
Loading…
Reference in a new issue