Source-Changes-HG archive

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

[src/trunk]: src/lib/csu Remove old compiler based crt stuff for alpha mips p...



details:   https://anonhg.NetBSD.org/src/rev/fa10ab1aec2c
branches:  trunk
changeset: 326491:fa10ab1aec2c
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Jan 31 11:58:33 2014 +0000

description:
Remove old compiler based crt stuff for alpha mips powerpc and vax

diffstat:

 lib/csu/alpha/Makefile     |   18 ----
 lib/csu/alpha/crt0.c       |   89 -----------------------
 lib/csu/alpha/crtfm.c      |   68 ------------------
 lib/csu/alpha/dot_init.h   |   78 --------------------
 lib/csu/mips/Makefile      |    6 -
 lib/csu/mips/crt0.c        |  169 ---------------------------------------------
 lib/csu/mips/dot_init.h    |  137 ------------------------------------
 lib/csu/powerpc/Makefile   |    5 -
 lib/csu/powerpc/crt0.c     |  112 -----------------------------
 lib/csu/powerpc/dot_init.h |   62 ----------------
 lib/csu/vax_elf/Makefile   |    4 -
 lib/csu/vax_elf/crt0.c     |  103 ---------------------------
 lib/csu/vax_elf/dot_init.h |   65 -----------------
 13 files changed, 0 insertions(+), 916 deletions(-)

diffs (truncated from 968 to 300 lines):

diff -r 610e465d95bd -r fa10ab1aec2c lib/csu/alpha/Makefile
--- a/lib/csu/alpha/Makefile    Fri Jan 31 11:53:37 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-#      $NetBSD: Makefile,v 1.24 2008/07/21 15:34:58 lukem Exp $
-
-.include <bsd.own.mk>
-
-ELFSIZE=       64
-
-#Uncomment the next line to enable the new .init fallthru
-CPPFLAGS+=     -I${.CURDIR}
-
-OBJS+= crtfm.o
-
-.include "${.CURDIR}/../common_elf/Makefile.inc"
-
-crtfm.o: crtfm.c
-       ${_MKTARGET_COMPILE}
-       ${COMPILE.c} ${.ALLSRC} -o ${.TARGET}.o
-       ${LD} -x -r -o ${.TARGET} ${.TARGET}.o
-       rm -f ${.TARGET}.o
diff -r 610e465d95bd -r fa10ab1aec2c lib/csu/alpha/crt0.c
--- a/lib/csu/alpha/crt0.c      Fri Jan 31 11:53:37 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,89 +0,0 @@
-/* $NetBSD: crt0.c,v 1.27 2012/03/22 13:02:15 he Exp $ */
-
-/*
- * 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 __P((char **, void (*cleanup) __P((void)), const Obj_Entry *,
-               struct ps_strings *));
-
-void
-__start(char **sp, void (*cleanup)(void), 
-       const Obj_Entry *obj, struct ps_strings *ps_strings)
-{
-       long argc;
-       char **argv, *namep;
-
-       argc = *(long *)sp;
-       argv = sp + 1;
-       environ = sp + 2 + argc;                /* 2: argc + NULL ending argv */
-
-       if ((namep = argv[0]) != NULL) {        /* NULL ptr if argc = 0 */
-               if ((__progname = _strrchr(namep, '/')) == NULL)
-                       __progname = namep;
-               else
-                       __progname++;
-       }
-
-       if (ps_strings != (struct ps_strings *)0 &&
-           ps_strings != (struct ps_strings *)0xbabefacedeadbeef)
-               __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.27 2012/03/22 13:02:15 he Exp $");
-#endif /* LIBC_SCCS and not lint */
-
-#include "common.c"
diff -r 610e465d95bd -r fa10ab1aec2c lib/csu/alpha/crtfm.c
--- a/lib/csu/alpha/crtfm.c     Fri Jan 31 11:53:37 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,68 +0,0 @@
-/*     $NetBSD: crtfm.c,v 1.2 2002/01/14 01:31:00 thorpej Exp $        */
-
-/*
- * Copyright (c) 2002 Wasabi Systems, Inc.
- * All rights reserved.
- *
- * Written by Jason R. Thorpe for Wasabi Systems, Inc.
- *
- * 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 by
- *     Wasabi Systems, Inc.
- * 4. The name of Wasabi Systems, Inc. may not be used to endorse
- *    or promote products derived from this software without specific prior
- *    written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY WASABI SYSTEMS, INC. ``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 WASABI SYSTEMS, INC
- * 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.
- */
-
-/*
- * Support for the GCC "-ffast-math" option on the Alpha.
- */
-
-#include <sys/types.h>
-
-#include <machine/fpu.h>
-#include <machine/sysarch.h>
-
-/*
- * Must provide this wrapper around sysarch(2) so that statically-linked
- * programs work properly.
- */
-
-extern void __alpha_sysarch(int, void *);
-
-__asm(".ent __alpha_sysarch 0  ;\n"
-"__alpha_sysarch:              ;\n"
-"      ldiq    $0, 165         ;\n" /* v0 = SYS_sysarch */
-"      call_pal 0x0083         ;\n" /* PAL_OSF1_callsys */
-"      ret     $31,($26),1     ;\n"
-".end __alpha_sysarch");
-
-static void __attribute__((__constructor__))
-__alpha_set_fast_math(void)
-{
-       struct alpha_fp_c_args args;
-
-       args.fp_c = IEEE_MAP_DMZ|IEEE_MAP_UMZ;
-       __alpha_sysarch(ALPHA_SET_FP_C, &args);
-}
diff -r 610e465d95bd -r fa10ab1aec2c lib/csu/alpha/dot_init.h
--- a/lib/csu/alpha/dot_init.h  Fri Jan 31 11:53:37 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,78 +0,0 @@
-/* $NetBSD: dot_init.h,v 1.8 2008/05/10 15:31:03 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 */
-#include <machine/asm.h>
-
-#define        ASM_SETUP "sp = $30; gp = $29; pv = $27; ra = $26 \n"
-
-#define        MD_SECTION_PROLOGUE(sect, entry_pt)             \
-               __asm (                                 \
-               ASM_SETUP                               \
-               ".section "#sect",\"ax\",@progbits      \n"\
-               ".global "#entry_pt"                    \n"\
-               #entry_pt":                             \n"\
-               "       ldgp    gp, 0(pv)               \n"\
-               "       lda     sp, -32(sp)             \n"\
-               "       stq     ra, 0(sp)               \n"\
-               "       stq     gp, 8(sp)               \n"\
-               "       .align  5                       \n"\
-               "       /* fall thru */                 \n"\
-               ".previous")
-
-#define        MD_SECTION_EPILOGUE(sect)                       \
-               __asm (                                 \
-               ASM_SETUP                               \
-               ".section "#sect",\"ax\",@progbits      \n"\
-               "       ldq     gp, 8(sp)               \n"\
-               "       ldq     ra, 0(sp)               \n"\
-               "       lda     sp, 32(sp)              \n"\
-               "       RET                             \n"\
-               ".previous")
-
-#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)
-
-/* We assume we need to reload our GP. */
-#define MD_CALL_STATIC_FUNCTION(section, func) \
-__asm(".section " #section "\n"                \
-"    br $29, 1f                \n"             \
-"1:  ldgp $29, 0($29)  \n"             \
-"    unop              \n"             \
-"    jsr $26, " #func "\n"             \
-"    .align 3; .previous");
diff -r 610e465d95bd -r fa10ab1aec2c lib/csu/mips/Makefile
--- a/lib/csu/mips/Makefile     Fri Jan 31 11:53:37 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,6 +0,0 @@
-#      $NetBSD: Makefile,v 1.24 2006/05/19 19:11:12 christos Exp $
-
-#Uncomment the next line to enable the new .init fallthru
-CPPFLAGS+=     -I${.CURDIR}
-
-.include "${.CURDIR}/../common_elf/Makefile.inc"
diff -r 610e465d95bd -r fa10ab1aec2c lib/csu/mips/crt0.c
--- a/lib/csu/mips/crt0.c       Fri Jan 31 11:53:37 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,169 +0,0 @@
-/* $NetBSD: crt0.c,v 1.22 2011/02/22 05:45:07 joerg Exp $ */
-
-/*
- * Copyright (c) 1995 Christopher G. Demetriou
- * All rights reserved.
- *
- * Modifications for NetBSD/mips:
- *
- *     Jonathan Stone
- *     Jason R. Thorpe, Numerical Aerospace Simulation Facility,
- *         NASA Ames Research Center
- *
- * 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.



Home | Main Index | Thread Index | Old Index