From 925220a4fecf635d106989aa4a56d80152777ba3 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Fri, 11 Nov 2005 23:59:19 +0000 Subject: Add hidden versions, add missing .size --- libc/string/arm/strlen.S | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'libc/string/arm/strlen.S') 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 -- cgit v1.2.3