aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vadim Kaushan <admin@disasm.info> 2019-07-04 23:21:48 +0300
committerGravatar Vadim Kaushan <admin@disasm.info> 2019-07-04 23:23:31 +0300
commitc4ca5ab55c8b0d426978e8efad5a84327b2ab7da (patch)
treee901e012931b1dfd171a5a8a9f480cf32115a8ba
parent3df114db27ca9201bb5e9c27eaed4c39e137c0ea (diff)
downloadcortex-m-c4ca5ab55c8b0d426978e8efad5a84327b2ab7da.tar.gz
cortex-m-c4ca5ab55c8b0d426978e8efad5a84327b2ab7da.tar.zst
cortex-m-c4ca5ab55c8b0d426978e8efad5a84327b2ab7da.zip
Fix __delay for the thumbv6m-none-eabi target
-rw-r--r--asm.s3
1 files changed, 2 insertions, 1 deletions
diff --git a/asm.s b/asm.s
index bf2fd46..1ad6fed 100644
--- a/asm.s
+++ b/asm.s
@@ -31,9 +31,10 @@ __cpsie:
.syntax unified
.thumb_func
__delay:
+1:
nop
subs r0, #1
- bne __delay
+ 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
bx lr
.section .text.__dmb