Source-Changes-HG archive

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

[src/trunk]: src/lib/csu/sh3_elf G/c old unused sh3 csu. Requested by joerg@



details:   https://anonhg.NetBSD.org/src/rev/0338d0c76314
branches:  trunk
changeset: 327090:0338d0c76314
user:      uwe <uwe%NetBSD.org@localhost>
date:      Thu Feb 27 02:14:27 2014 +0000

description:
G/c old unused sh3 csu.  Requested by joerg@

diffstat:

 lib/csu/sh3_elf/Makefile   |   5 --
 lib/csu/sh3_elf/crt0.c     |  96 ----------------------------------------------
 lib/csu/sh3_elf/dot_init.h |  91 -------------------------------------------
 3 files changed, 0 insertions(+), 192 deletions(-)

diffs (204 lines):

diff -r d0dd94f65e0c -r 0338d0c76314 lib/csu/sh3_elf/Makefile
--- a/lib/csu/sh3_elf/Makefile  Thu Feb 27 01:40:07 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,5 +0,0 @@
-#      $NetBSD: Makefile,v 1.3 2006/05/19 19:11:12 christos Exp $
-
-CPPFLAGS+= -I${.CURDIR}
-
-.include "${.CURDIR}/../common_elf/Makefile.inc"
diff -r d0dd94f65e0c -r 0338d0c76314 lib/csu/sh3_elf/crt0.c
--- a/lib/csu/sh3_elf/crt0.c    Thu Feb 27 01:40:07 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,96 +0,0 @@
-/* $NetBSD: crt0.c,v 1.12 2011/03/07 05:09:11 joerg Exp $ */
-
-/*
- * Copyright (c) 1998 Christos Zoulas
- * Copyright (c) 1995 Christopher G. Demetriou
- * All rights reserved.
- * 
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *          This product includes software developed for the
- *          NetBSD Project.  See http://www.NetBSD.org/ for
- *          information about NetBSD.
- * 4. The name of the author may not be used to endorse or promote products
- *    derived from this software without specific prior written permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
- * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
- * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
- * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- * 
- * <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
- */
-
-#include "common.h"
-
-void ___start(int, char **, char **, void (*cleanup)(void),
-                       const Obj_Entry *, struct ps_strings *);
-
-__asm( "       .text                   \n"
-       "       .align 2                \n"
-       "       .globl _start           \n"
-       "       .globl __start          \n"
-       "_start:                        \n"
-       "__start:                       \n"
-       "       mov.l   r9,@-r15        \n"
-       "       bra ___start            \n"
-       "       mov.l   r8,@-r15");
-
-void
-___start(int argc, char **argv, char **envp,
-    void (*cleanup)(void),                     /* from shared loader */
-    const Obj_Entry *obj,                      /* from shared loader */
-    struct ps_strings *ps_strings)
-{
-       environ = envp;
-
-       if ((__progname = argv[0]) != NULL) {   /* NULL ptr if argc = 0 */
-               if ((__progname = _strrchr(__progname, '/')) == NULL)
-                       __progname = argv[0];
-               else
-                       __progname++;
-       }
-
-       if (ps_strings != (struct ps_strings *)0)
-               __ps_strings = ps_strings;
-
-#ifdef DYNAMIC
-       if (&rtld_DYNAMIC != NULL)
-               _rtld_setup(cleanup, obj);
-#endif
-
-       _libc_init();
-
-#ifdef MCRT0
-       atexit(_mcleanup);
-       monstartup((u_long)&_eprol, (u_long)&_etext);
-#endif
-
-       atexit(_fini);
-       _init();
-
-       exit(main(argc, argv, environ));
-}
-
-/*
- * 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.12 2011/03/07 05:09:11 joerg Exp $");
-#endif /* LIBC_SCCS and not lint */
-
-#include "common.c"
diff -r d0dd94f65e0c -r 0338d0c76314 lib/csu/sh3_elf/dot_init.h
--- a/lib/csu/sh3_elf/dot_init.h        Thu Feb 27 01:40:07 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,91 +0,0 @@
-/*     $NetBSD: dot_init.h,v 1.7 2008/05/10 15:31:04 martin Exp $      */
-
-/*-
- * Copyright (c) 2001 Ross Harvey
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- * 3. All advertising materials mentioning features or use of this software
- *    must display the following acknowledgement:
- *     This product includes software developed by the NetBSD
- *     Foundation, Inc. and its contributors.
- * 4. Neither the name of The NetBSD Foundation nor the names of its
- *    contributors may be used to endorse or promote products derived
- *    from this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
- * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
- * POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
-
-
-/*
- * Don't use C versions of _init/_fini, they have become just a
- * rudimentary indirection to the entry points we would supply with
- * MD_SECTION_PROLOGUE.
- */
-#define MD_INIT_SECTION_PROLOGUE MD_SECTION_PROLOGUE(.init, _init)
-#define MD_FINI_SECTION_PROLOGUE MD_SECTION_PROLOGUE(.fini, _fini)
-
-#define MD_INIT_SECTION_EPILOGUE MD_SECTION_EPILOGUE(.init)
-#define MD_FINI_SECTION_EPILOGUE MD_SECTION_EPILOGUE(.fini)
-
-
-#define MD_ASM_IN_SECTION(section, content)                            \
-       __asm(                                                          \
-               ".section " #section ",\"ax\",@progbits\n"              \
-                       content "\n"                                    \
-               ".previous")
-
-/*
- * Declare the entry point global.
- */
-#define MD_SECTION_PROLOGUE(section, entry_pt)                         \
-       MD_ASM_IN_SECTION(section,                                      \
-               "       .global "_C_LABEL_STRING(#entry_pt)"    \n"     \
-               "       .type "_C_LABEL_STRING(#entry_pt)",@function\n" \
-               _C_LABEL_STRING(#entry_pt)":                    \n"     \
-               "       mov.l   r14, @-sp                       \n"     \
-               "       sts.l   pr, @-sp                        \n"     \
-               "       mov     sp, r14                         \n"     \
-               "       .p2align 2")
-
-/*
- * NOTE 1: Supply the semicolon here because crtbegin.c doesn't.
- * NOTE 2: We don't use our crtbegin.c for gcc3 and later,
- *         we use gcc crtstuff.c via src/gnu/lib/crtstuff*
- */
-#define MD_CALL_STATIC_FUNCTION(section, func)                         \
-       MD_ASM_IN_SECTION(section,                                      \
-               "       mov.l   1f, r1                          \n"     \
-               "       mova    2f, r0                          \n"     \
-               "0:     braf    r1                              \n"     \
-               "        lds    r0, pr                          \n"     \
-                                                                       \
-               "       .p2align 2                              \n"     \
-               "1:     .long "_C_LABEL_STRING(#func)" - (0b+4) \n"     \
-               "2:     ");
-
-#define MD_SECTION_EPILOGUE(section)                                   \
-       MD_ASM_IN_SECTION(section,                                      \
-               "       mov     r14, sp                         \n"     \
-               "       lds.l   @sp+, pr                        \n"     \
-               "       rts                                     \n"     \
-               "        mov.l  @sp+, r14")



Home | Main Index | Thread Index | Old Index