Skip to content

Commit

Permalink
arm: cortex_m: restore fix for loading z_arm_int_exit
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
nashif authored and dkalowsk committed Nov 1, 2024
1 parent e646b7f commit d9bc0b6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion arch/arm/core/cortex_m/swap_helper.S
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d9bc0b6

Please sign in to comment.