Skip to content

Instantly share code, notes, and snippets.

@eblot
Last active September 22, 2019 12:24
Show Gist options
  • Save eblot/b4adff9922a19efc7f7cbce83c5da482 to your computer and use it in GitHub Desktop.
Save eblot/b4adff9922a19efc7f7cbce83c5da482 to your computer and use it in GitHub Desktop.
diff --git a/newlib/libc/machine/arm/strlen-thumb2-Os.S b/newlib/libc/machine/arm/strlen-thumb2-Os.S
index 961f41a0a..7a8b3d93b 100644
--- a/newlib/libc/machine/arm/strlen-thumb2-Os.S
+++ b/newlib/libc/machine/arm/strlen-thumb2-Os.S
@@ -45,7 +45,7 @@
def_fn strlen p2align=1
mov r3, r0
-1: ldrb.w r2, [r3], #1
+1: ldrb r2, [r3], #1
cmp r2, #0
bne 1b
subs r0, r3, r0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment