blob: 89345033ffb364449f7784d8233fe2d22cb7211a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/src/lib/libumem/malloc.c b/src/lib/libumem/malloc.c
index 7eec207..5a4d763 100644
--- a/src/lib/libumem/malloc.c
+++ b/src/lib/libumem/malloc.c
@@ -453,7 +453,7 @@ static void __attribute__((constructor)) umem_malloc_init_hook(void)
}
}
-void (*__malloc_initialize_hook)(void) = umem_malloc_init_hook;
+void (* __volatile __malloc_initialize_hook)(void) = umem_malloc_init_hook;
#else
void __attribute__((constructor))
|