From 12c22deb2e5570dee2237829522c92e235013c9e Mon Sep 17 00:00:00 2001 From: Romain Goyet Date: Thu, 21 Mar 2019 18:24:54 +0100 Subject: [PATCH] [python] Fix the armv7 build on iOS --- python/src/py/nlrthumb.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 );