Skip to content

Commit

Permalink
Fix init symbol ref for x86 linking
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansson authored Apr 4, 2024
2 parents e4393ff + 6a41733 commit 2863309
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rpmalloc/malloc.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,11 @@ _global_rpmalloc_xib(void) {

#pragma section(".CRT$XIB",read)
__declspec(allocate(".CRT$XIB")) void (*_rpmalloc_module_init)(void) = _global_rpmalloc_xib;
#pragma comment(linker, "/include:_rpmalloc_module_init")
#if defined(_M_IX86) || defined(__i386__)
#pragma comment(linker, "/include:" "__rpmalloc_module_init")
#else
#pragma comment(linker, "/include:" "_rpmalloc_module_init")
#endif

#endif

Expand Down

0 comments on commit 2863309

Please sign in to comment.