File tree 2 files changed +4
-0
lines changed
2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -369,6 +369,7 @@ static void prvRestoreContextOfFirstTask( void )
369
369
" ldr r14, =0xfffffffd \n" /* Load exec return code. */
370
370
" bx r14 \n"
371
371
" \n"
372
+ " .ltorg \n" /* Assemble current literal pool to avoid offset-out-of-bound errors with lto. */
372
373
" .align 4 \n"
373
374
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
374
375
);
@@ -579,6 +580,7 @@ void xPortPendSVHandler( void )
579
580
" msr psp, r0 \n"
580
581
" bx r14 \n"
581
582
" \n"
583
+ " .ltorg \n" /* Assemble current literal pool to avoid offset-out-of-bound errors with lto. */
582
584
" .align 4 \n"
583
585
"pxCurrentTCBConst: .word pxCurrentTCB \n"
584
586
::"i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY )
Original file line number Diff line number Diff line change @@ -394,6 +394,7 @@ static void prvRestoreContextOfFirstTask( void )
394
394
" msr basepri, r0 \n"
395
395
" bx r14 \n"
396
396
" \n"
397
+ " .ltorg \n" /* Assemble current literal pool to avoid offset-out-of-bound errors with lto. */
397
398
" .align 4 \n"
398
399
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
399
400
);
@@ -631,6 +632,7 @@ void xPortPendSVHandler( void )
631
632
" msr psp, r0 \n"
632
633
" bx r14 \n"
633
634
" \n"
635
+ " .ltorg \n" /* Assemble the current literal pool to avoid offset-out-of-bound errors with lto. */
634
636
" .align 4 \n"
635
637
"pxCurrentTCBConst: .word pxCurrentTCB \n"
636
638
::"i " ( configMAX_SYSCALL_INTERRUPT_PRIORITY )
You can’t perform that action at this time.
0 commit comments