Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu/arch/arm Fix code around __register_frame_info (fixe...
details: https://anonhg.NetBSD.org/src/rev/c6ded26ef0eb
branches: trunk
changeset: 781178:c6ded26ef0eb
user: matt <matt%NetBSD.org@localhost>
date: Fri Aug 24 16:37:45 2012 +0000
description:
Fix code around __register_frame_info (fixes core dumps)
diffstat:
lib/csu/arch/arm/crtbegin.S | 14 ++++++--------
1 files changed, 6 insertions(+), 8 deletions(-)
diffs (37 lines):
diff -r ccb3b7c95e84 -r c6ded26ef0eb lib/csu/arch/arm/crtbegin.S
--- a/lib/csu/arch/arm/crtbegin.S Fri Aug 24 15:25:11 2012 +0000
+++ b/lib/csu/arch/arm/crtbegin.S Fri Aug 24 16:37:45 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crtbegin.S,v 1.2 2012/08/11 07:25:13 matt Exp $ */
+/* $NetBSD: crtbegin.S,v 1.3 2012/08/24 16:37:45 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -30,7 +30,7 @@
#include <arm/asm.h>
-RCSID("$NetBSD: crtbegin.S,v 1.2 2012/08/11 07:25:13 matt Exp $")
+RCSID("$NetBSD: crtbegin.S,v 1.3 2012/08/24 16:37:45 matt Exp $")
.section .ctors, "aw", %progbits
.p2align 2
@@ -211,14 +211,12 @@
cmp ip, #0
beq 1f
- ldr r2, .L__EH_FRAME_LIST__
- ldr r3, .L__dwarf_eh_object
+ ldr r0, .L__EH_FRAME_LIST__
+ ldr r1, .L__dwarf_eh_object
#ifdef PIC
- add r2, r2, r7 /* object addr = got addr + offset */
- add r3, r3, r7 /* object addr = got addr + offset */
+ add r0, r0, r7 /* object addr = got addr + offset */
+ add r1, r1, r7 /* object addr = got addr + offset */
#endif
- ldr r0, [r2]
- ldr r1, [r3]
#ifdef _ARM_ARCH_4T
blx ip
Home |
Main Index |
Thread Index |
Old Index