From d9bc0b60b989c9ab05f717d245546dde8b97d078 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 1 Nov 2024 17:50:50 -0400 Subject: [PATCH] arm: cortex_m: restore fix for loading z_arm_int_exit This change was in the same commit previously reverted and seem to be unrelated and should not be reverted. Fixes the problem: ..... /swap_helper.S:432:(.text.z_arm_svc+0x26): relocation truncated to fit: R_ARM_THM_JUMP11 against symbol `z_arm_int_exit' defined in .text._HandlerModeExit section in ....core/cortex_m/libarch__arm__core__cortex_m.a(exc_exit.c.obj) Signed-off-by: Anas Nashif --- arch/arm/core/cortex_m/swap_helper.S | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/core/cortex_m/swap_helper.S b/arch/arm/core/cortex_m/swap_helper.S index 477ee2ac86d..7a557e904f1 100644 --- a/arch/arm/core/cortex_m/swap_helper.S +++ b/arch/arm/core/cortex_m/swap_helper.S @@ -429,7 +429,9 @@ _stack_frame_endif: #endif /* exception return is done in z_arm_int_exit() */ - b z_arm_int_exit + ldr r0, =z_arm_int_exit + bx r0 + #endif _oops: