Skip to content

Commit c4ca5ab

Browse files
committed
Fix __delay for the thumbv6m-none-eabi target
1 parent 3df114d commit c4ca5ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asm.s

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ __cpsie:
3131
.syntax unified
3232
.thumb_func
3333
__delay:
34+
1:
3435
nop
3536
subs r0, #1
36-
bne __delay
37+
bne 1b // Branch to 1 instead of __delay does not generate R_ARM_THM_JUMP8 relocation, which breaks linking on the thumbv6m-none-eabi target
3738
bx lr
3839

3940
.section .text.__dmb

0 commit comments

Comments
 (0)