ref: ca38f0f6200fdaaccdda3969794afe16328c4ca8
parent: 0326c060435f1647d8dbd26edace0e86da955524
author: Martin Storsjö <[email protected]>
date: Tue May 12 11:48:50 EDT 2020
checkasm: arm: Don't use blx to call checkasm_fail_func We should just use a normal bl here, and the linker will add the 'x' bit if necessary. This fixes calling the checkasm_fail_func on windows, where the code is built in thumb mode (and the linker doesn't clear the 'x' bit in the blx instruction).
--- a/tests/checkasm/arm/checkasm_32.S
+++ b/tests/checkasm/arm/checkasm_32.S
@@ -180,9 +180,9 @@
movrel r0, error_message_gpr
1:
#ifdef PREFIX
- blx _checkasm_fail_func
+ bl _checkasm_fail_func
#else
- blx checkasm_fail_func
+ bl checkasm_fail_func
#endif
0:
pop {r0, r1}