diff --git a/python/src/py/nlrthumb.c b/python/src/py/nlrthumb.c index c28302355..f17c91686 100644 --- a/python/src/py/nlrthumb.c +++ b/python/src/py/nlrthumb.c @@ -72,7 +72,11 @@ __attribute__((naked)) unsigned int nlr_push(nlr_buf_t *nlr) { ".align 2 \n" "nlr_push_tail_var: .word nlr_push_tail \n" #else - "b nlr_push_tail \n" // do the rest in C + #if defined(__APPLE__) || defined(__MACH__) + "b _nlr_push_tail \n" // do the rest in C + #else + "jmp nlr_push_tail \n" // do the rest in C + #endif #endif );