Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/csu/arch/vax Use .long not .word
details: https://anonhg.NetBSD.org/src/rev/4c2705fa7a5e
branches: trunk
changeset: 787582:4c2705fa7a5e
user: matt <matt%NetBSD.org@localhost>
date: Tue Jun 25 00:30:07 2013 +0000
description:
Use .long not .word
Use _ENTRY
[with these changes, the crtstuff passes its ATF tests.]
diffstat:
lib/csu/arch/vax/Makefile.inc | 4 ++--
lib/csu/arch/vax/crtbegin.S | 19 ++++++++-----------
lib/csu/arch/vax/crtend.S | 8 ++++----
3 files changed, 14 insertions(+), 17 deletions(-)
diffs (106 lines):
diff -r 47e642f7e135 -r 4c2705fa7a5e lib/csu/arch/vax/Makefile.inc
--- a/lib/csu/arch/vax/Makefile.inc Tue Jun 25 00:27:22 2013 +0000
+++ b/lib/csu/arch/vax/Makefile.inc Tue Jun 25 00:30:07 2013 +0000
@@ -1,3 +1,3 @@
-# $NetBSD: Makefile.inc,v 1.2 2013/06/21 15:54:08 matt Exp $
+# $NetBSD: Makefile.inc,v 1.3 2013/06/25 00:30:07 matt Exp $
-CPPFLAGS+= -DELFSIZE=32
+CPPFLAGS+= -I${ARCHDIR}
diff -r 47e642f7e135 -r 4c2705fa7a5e lib/csu/arch/vax/crtbegin.S
--- a/lib/csu/arch/vax/crtbegin.S Tue Jun 25 00:27:22 2013 +0000
+++ b/lib/csu/arch/vax/crtbegin.S Tue Jun 25 00:30:07 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crtbegin.S,v 1.2 2013/06/24 14:49:55 matt Exp $ */
+/* $NetBSD: crtbegin.S,v 1.3 2013/06/25 00:30:07 matt Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -30,17 +30,17 @@
#include <vax/asm.h>
-RCSID("$NetBSD: crtbegin.S,v 1.2 2013/06/24 14:49:55 matt Exp $")
+RCSID("$NetBSD: crtbegin.S,v 1.3 2013/06/25 00:30:07 matt Exp $")
.section .ctors, "aw", @progbits
.p2align 2
__CTOR_LIST__: /* symbol is not used */
- .word -1
+ .long -1
.section .dtors, "aw", @progbits
.p2align 2
__DTOR_LIST__:
- .word -1
+ .long -1
.section .eh_frame, "a", @progbits
.p2align 2
@@ -58,9 +58,9 @@
.hidden __dso_handle
__dso_handle:
#ifdef SHARED
- .word __dso_handle
+ .long __dso_handle
#else
- .word 0
+ .long 0
#endif
.local __dwarf_eh_object
@@ -80,9 +80,7 @@
* needed.
*/
- .type __do_global_dtors_aux, @function
-__do_global_dtors_aux:
- .word 0x0100 /* save r8 */
+_ENTRY(__do_global_dtors_aux, 0x0100) /* save r8 */
tstb __finished /* done this already? */
bneq 4f
movb $1, __finished /* mark it as done */
@@ -129,8 +127,7 @@
.weak __register_frame_info
.weak _Jv_RegisterClasses
- .type __do_global_ctors_aux, @function
-__do_global_ctors_aux:
+_ENTRY(__do_global_ctors_aux, 0x0800)
tstb __initialized
bneq 4f
movb $1, __initialized
diff -r 47e642f7e135 -r 4c2705fa7a5e lib/csu/arch/vax/crtend.S
--- a/lib/csu/arch/vax/crtend.S Tue Jun 25 00:27:22 2013 +0000
+++ b/lib/csu/arch/vax/crtend.S Tue Jun 25 00:30:07 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: crtend.S,v 1.1 2013/06/21 15:54:08 matt Exp $ */
+/* $NetBSD: crtend.S,v 1.2 2013/06/25 00:30:07 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -30,21 +30,21 @@
#include <vax/asm.h>
-RCSID("$NetBSD: crtend.S,v 1.1 2013/06/21 15:54:08 matt Exp $")
+RCSID("$NetBSD: crtend.S,v 1.2 2013/06/25 00:30:07 matt Exp $")
.section .ctors, "aw", @progbits
.p2align 2
.global __CTOR_LIST_END__
.hidden __CTOR_LIST_END__
__CTOR_LIST_END__:
- .word 0
+ .long 0
.section .dtors, "aw", @progbits
.p2align 2
.global __DTOR_LIST_END__
.hidden __DTOR_LIST_END__
__DTOR_LIST_END__:
- .word 0
+ .long 0
.section .eh_frame, "a", @progbits
.p2align 2
Home |
Main Index |
Thread Index |
Old Index