Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/csu/hppa Deal with the new toolchain.



details:   https://anonhg.NetBSD.org/src/rev/2586ba3a24fd
branches:  trunk
changeset: 552907:2586ba3a24fd
user:      matt <matt%NetBSD.org@localhost>
date:      Mon Oct 06 05:28:05 2003 +0000

description:
Deal with the new toolchain.

diffstat:

 lib/csu/hppa/Makefile |   3 ++-
 lib/csu/hppa/crt0.c   |  17 ++++++++++-------
 2 files changed, 12 insertions(+), 8 deletions(-)

diffs (61 lines):

diff -r 865b1c8c39d4 -r 2586ba3a24fd lib/csu/hppa/Makefile
--- a/lib/csu/hppa/Makefile     Mon Oct 06 05:27:19 2003 +0000
+++ b/lib/csu/hppa/Makefile     Mon Oct 06 05:28:05 2003 +0000
@@ -1,3 +1,4 @@
-#      $NetBSD: Makefile,v 1.1 2002/06/06 20:31:19 fredette Exp $
+#      $NetBSD: Makefile,v 1.2 2003/10/06 05:28:05 matt Exp $
+CPPFLAGS+=     -I- -I${.CURDIR}
 
 .include "${.CURDIR}/../common_elf/Makefile.inc"
diff -r 865b1c8c39d4 -r 2586ba3a24fd lib/csu/hppa/crt0.c
--- a/lib/csu/hppa/crt0.c       Mon Oct 06 05:27:19 2003 +0000
+++ b/lib/csu/hppa/crt0.c       Mon Oct 06 05:28:05 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: crt0.c,v 1.3 2003/07/26 19:24:27 salo Exp $    */
+/*     $NetBSD: crt0.c,v 1.4 2003/10/06 05:28:05 matt Exp $    */
 
 /*
  * Copyright (c) 2002 Matt Fredette
@@ -40,7 +40,7 @@
 
 int    __global __asm ("$global$") = 0;
 
-static void __start __P((struct ps_strings *,
+static void ___start __P((struct ps_strings *,
     void (*cleanup) __P((void)), const Obj_Entry *, int)) 
 #ifdef __GNUC__
     __attribute__((__unused__))
@@ -51,17 +51,20 @@
 "      .text                           \n"
 "      .align  4                       \n"
 "      .globl  _start                  \n"
-"      .type   _start,@function        \n"
-"_start                                        \n"
+"      .globl  _start                  \n"
+"      .type   __start,@function       \n"
+"      .type   __start,@function       \n"
+"_start:                               \n"
+"__start:                              \n"
 "      .import $global$, data          \n"
 "      ldil    L%$global$, %r27        \n"
 "      ldo     R%$global$(%r27), %r27  \n"
 "      copy    %r27, %r19              \n"
-"      b       __start                 \n"
+"      b       ___start                \n"
 "      copy    %r27, %arg3             \n");
 
 static void
-__start(ps_strings, cleanup, obj, dp)
+___start(ps_strings, cleanup, obj, dp)
        struct ps_strings *ps_strings;
        void (*cleanup) __P((void));            /* from shared loader */
        const Obj_Entry *obj;                   /* from shared loader */
@@ -149,7 +152,7 @@
  * NOTE: Leave the RCS ID _after_ __start(), in case it gets placed in .text.
  */
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: crt0.c,v 1.3 2003/07/26 19:24:27 salo Exp $");
+__RCSID("$NetBSD: crt0.c,v 1.4 2003/10/06 05:28:05 matt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "common.c"



Home | Main Index | Thread Index | Old Index