Skip to content

Commit 6b7a5fc

Browse files
GCC: ARM_CM0: Fix L6286E error on Keil MDK
Change the .b instruction to .bl with higher range to solve error reported by MDK descibed bellow. Fix: Error: L6286E: Relocation #REL:0 in portasm.o(.text.SVC_Handler) with respect to vPortSVCHandler_C. Value(0x1a04) out of range(-0x800 - 0x7fe) for (R_ARM_THM_JUMP11) Compiler: Keil MDK ARMClang 6.22.0 https://developer.arm.com/documentation/ka002847/latest/ https://developer.arm.com/documentation/dui0496/m/Linker-Errors-and-Warnings/List-of-the-armlink-error-and-warning-messages Signed-off-by: Tomas Galbicka <tomas.galbicka@nxp.com>
1 parent 23cfd11 commit 6b7a5fc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

portable/GCC/ARM_CM0/portasm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ void vClearInterruptMask( __attribute__( ( unused ) ) uint32_t ulMask ) /* __att
472472
" ldr r3, =%1 \n"
473473
" cmp r2, r3 \n"
474474
" beq system_call_exit \n"
475-
" b vPortSVCHandler_C \n"
475+
" bl vPortSVCHandler_C \n"
476476
" \n"
477477
" system_call_enter: \n"
478478
" push {lr} \n"
@@ -508,11 +508,11 @@ void vClearInterruptMask( __attribute__( ( unused ) ) uint32_t ulMask ) /* __att
508508
" \n"
509509
" stacking_used_psp: \n"
510510
" mrs r0, psp \n"
511-
" b vPortSVCHandler_C \n"
511+
" bl vPortSVCHandler_C \n"
512512
" \n"
513513
" stacking_used_msp: \n"
514514
" mrs r0, msp \n"
515-
" b vPortSVCHandler_C \n"
515+
" bl vPortSVCHandler_C \n"
516516
" \n"
517517
" .align 4 \n"
518518
);

0 commit comments

Comments
 (0)