Skip to content

Commit

Permalink
Handle linking against ___chkstk_ms on MinGW as a special case. Issue #…
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Apr 13, 2023
1 parent e3a44b3 commit 77984aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jit/jit-code.c
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,10 @@ static void code_load_pe(code_blob_t *blob, const void *data, size_t size)
assert(sym->SectionNumber - 1 < imghdr->NumberOfSections);
ptr = load_addr[sym->SectionNumber - 1];
}
else if (strcmp(name, "___chkstk_ms") == 0) {
extern void ___chkstk_ms(void);
ptr = &___chkstk_ms;
}
else
ptr = ffi_find_symbol(NULL, name);

Expand Down

0 comments on commit 77984aa

Please sign in to comment.