Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/arch/arm/string For EABI, add .cfi ops
details: https://anonhg.NetBSD.org/src/rev/c912a43b792d
branches: trunk
changeset: 789429:c912a43b792d
user: matt <matt%NetBSD.org@localhost>
date: Mon Aug 19 01:17:32 2013 +0000
description:
For EABI, add .cfi ops
diffstat:
common/lib/libc/arch/arm/string/strlen_arm.S | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (40 lines):
diff -r f98de5e6179c -r c912a43b792d common/lib/libc/arch/arm/string/strlen_arm.S
--- a/common/lib/libc/arch/arm/string/strlen_arm.S Mon Aug 19 01:12:08 2013 +0000
+++ b/common/lib/libc/arch/arm/string/strlen_arm.S Mon Aug 19 01:17:32 2013 +0000
@@ -29,7 +29,7 @@
#include <machine/asm.h>
-RCSID("$NetBSD: strlen_arm.S,v 1.3 2013/01/23 06:59:55 matt Exp $")
+RCSID("$NetBSD: strlen_arm.S,v 1.4 2013/08/19 01:17:32 matt Exp $")
#ifdef __ARMEL__
#define BYTE0 0x000000ff
@@ -51,8 +51,18 @@
.text
ENTRY(FUNCNAME)
+#ifdef __ARM_EABI__
+ .fnstart
+ .cfi_startproc
+#endif
#ifdef STRNLEN
push {r4,r5} /* save some registers */
+#ifdef __ARM_EABI__
+ .save {r4,r5}
+ .cfi_def_cfa_offset 8
+ .cfi_offset 5, -4
+ .cfi_offset 4, -8
+#endif
add r5, r0, r1 /* get ptr to end of string */
mov r4, r1 /* save maxlen */
#endif
@@ -151,4 +161,8 @@
pop {r4, r5} /* restore registers */
RET /* return */
#endif
+#ifdef __ARM_EABI__
+ .cfi_endproc
+ .fnend
+#endif
END(FUNCNAME)
Home |
Main Index |
Thread Index |
Old Index