diff options
Diffstat (limited to 'libc/string/arm/strlen.S')
-rw-r--r-- | libc/string/arm/strlen.S | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/libc/string/arm/strlen.S b/libc/string/arm/strlen.S index 195276e30..7d91fd033 100644 --- a/libc/string/arm/strlen.S +++ b/libc/string/arm/strlen.S @@ -25,12 +25,15 @@ * exit: r0 = len */ -.text .global strlen -.type strlen,%function +.set strlen,__strlen +.text +.global __strlen +.hidden __strlen +.type __strlen,%function .align 4 -strlen: +__strlen: bic r1, r0, $3 @ addr of word containing first byte ldr r2, [r1], $4 @ get the first word ands r3, r0, $3 @ how many bytes are duff? @@ -76,4 +79,4 @@ Llastword: @ drop through to here once we find a #endif mov pc,lr -.size strlen,.-strlen +.size __strlen,.-__strlen |