Skip to content

Commit d9bc0b6

Browse files
nashifdkalowsk
authored andcommitted
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 <[email protected]>
1 parent e646b7f commit d9bc0b6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arch/arm/core/cortex_m/swap_helper.S

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,9 @@ _stack_frame_endif:
429429
#endif
430430

431431
/* exception return is done in z_arm_int_exit() */
432-
b z_arm_int_exit
432+
ldr r0, =z_arm_int_exit
433+
bx r0
434+
433435
#endif
434436

435437
_oops:

0 commit comments

Comments
 (0)