[Midnightbsd-cvs] src: csu/arm: remove arm and ia64 arch support.

laffer1 at midnightbsd.org laffer1 at midnightbsd.org
Wed Oct 1 12:28:09 EDT 2008


Log Message:
-----------
remove arm and ia64 arch support.

Removed Files:
-------------
    src/lib/csu/arm:
        Makefile
        crt1.c
        crti.S
        crtn.S
    src/lib/csu/ia64:
        Makefile
        crt1.S
        crti.S
        crtn.S

-------------- next part --------------
--- lib/csu/arm/crti.S
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <machine/asm.h>
-__MBSDID("$MidnightBSD: src/lib/csu/arm/crti.S,v 1.2 2008/05/16 18:43:29 laffer1 Exp $");
-
-	.section .init,"ax",%progbits
-	.align 4
-	.globl	_init
-	.type	_init,%function
-_init:
-	mov	ip, sp
-	stmdb	sp!, {fp, ip, lr, pc}
-	sub	fp, ip, #4
-
-	.section .fini,"ax",%progbits
-	.align 4
-	.globl	_fini
-	.type	_fini,%function
-_fini:
-	mov	ip, sp
-	stmdb	sp!, {fp, ip, lr, pc}
-	sub	fp, ip, #4
-
--- lib/csu/arm/crtn.S
+++ /dev/null
@@ -1,9 +0,0 @@
-#include <machine/asm.h>
-__MBSDID("$MidnightBSD: src/lib/csu/arm/crtn.S,v 1.2 2008/05/16 18:43:29 laffer1 Exp $");
-	.section .init,"ax",%progbits
-	ldmea	fp, {fp, sp, pc}
-	mov	pc, lr
-
-	.section .fini,"ax",%progbits
-	ldmea	fp, {fp, sp, pc}
-	mov	pc, lr
--- lib/csu/arm/crt1.c
+++ /dev/null
@@ -1,137 +0,0 @@
-/* LINTLIBRARY */
-/*-
- * Copyright 2001 David E. O'Brien.
- * All rights reserved.
- * Copyright 1996-1998 John D. Polstra.
- * All rights reserved.
- * Copyright (c) 1997 Jason R. Thorpe.
- * 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
- *          FreeBSD Project.  See http://www.freebsd.org/ for
- *          information about FreeBSD.
- *          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.
- */
-
-#ifndef lint
-#ifndef __GNUC__
-#error "GCC is needed to compile this file"
-#endif
-#endif /* lint */
-
-#include <stdlib.h>
-
-#include "libc_private.h"
-#include "crtbrand.c"
-#include <machine/asm.h>
-
-struct Struct_Obj_Entry;
-struct ps_strings;
-
-extern int _DYNAMIC;
-#pragma weak _DYNAMIC
-
-extern void _fini(void);
-extern void _init(void);
-extern int main(int, char **, char **);
-extern void _start(int, char **, char **, const struct Struct_Obj_Entry *,
-    void (*)(void), struct ps_strings *);
-
-#ifdef GCRT
-extern void _mcleanup(void);
-extern void monstartup(void *, void *);
-extern int eprol;
-extern int etext;
-#endif
-
-char **environ;
-const char *__progname = "";
-struct ps_strings *__ps_strings;
-
-/* The entry function. */
-__asm("	.text			\n"
-"	.align	0		\n"
-"	.globl	_start		\n"
-"	_start:			\n"
-"	mov	r5, r2		/* cleanup */		\n"
-"	mov	r4, r1		/* obj_main */		\n"
-"	mov	r3, r0		/* ps_strings */	\n"
-"	/* Get argc, argv, and envp from stack */	\n"
-"	ldr	r0, [sp, #0x0000]	\n"
-"	add	r1, sp, #0x0004		\n"
-"	add	r2, r1, r0, lsl #2	\n"
-"	add	r2, r2, #0x0004		\n"
-"	/* Ensure the stack is properly aligned before calling C code. */\n"
-"	bic	sp, sp, #7	\n"
-"	sub	sp, sp, #8	\n"
-"	str	r5, [sp, #4]	\n"
-"	str	r4, [sp, #0]	\n"
-"\n"
-"	b	 __start  ");
-/* ARGSUSED */
-void
-__start(int argc, char **argv, char **env, struct ps_strings *ps_strings,
-    const struct Struct_Obj_Entry *obj __unused, void (*cleanup)(void))
-{
-	const char *s;
-
-	environ = env;
-
-	if (argc > 0 && argv[0] != NULL) {
-		__progname = argv[0];
-		for (s = __progname; *s != '\0'; s++)
-			if (*s == '/')
-				__progname = s + 1;
-	}
-
-	if (ps_strings != (struct ps_strings *)0)
-		__ps_strings = ps_strings;
-
-	if (&_DYNAMIC != NULL)
-		atexit(cleanup);
-	else
-		_init_tls();
-#ifdef GCRT
-	atexit(_mcleanup);
-#endif
-	atexit(_fini);
-#ifdef GCRT
-	monstartup(&eprol, &etext);
-#endif
-	_init();
-	exit( main(argc, argv, env) );
-}
-
-#ifdef GCRT
-__asm__(".text");
-__asm__("eprol:");
-__asm__(".previous");
-#endif
-
-__asm__(".ident\t\"$MidnightBSD: src/lib/csu/arm/crt1.c,v 1.2 2008/05/16 18:43:29 laffer1 Exp $\"");
--- lib/csu/arm/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-# $MidnightBSD: src/lib/csu/arm/Makefile,v 1.2 2008/05/16 18:43:29 laffer1 Exp $
-# $FreeBSD: src/lib/csu/arm/Makefile,v 1.1 2004/05/14 12:19:04 cognet Exp $
-
-.PATH: ${.CURDIR}/../common
-
-SRCS=		crt1.c crti.S crtn.S
-OBJS=		${SRCS:N*.h:R:S/$/.o/g}
-OBJS+=		gcrt1.o
-CFLAGS+=	-Wall -Wno-unused \
-		-I${.CURDIR}/../common \
-		-I${.CURDIR}/../../libc/include
-
-all: ${OBJS}
-
-CLEANFILES=	${OBJS}
-
-gcrt1.o: crt1.c
-	${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC}
-
-realinstall:
-	${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
-	    ${OBJS} ${DESTDIR}${LIBDIR}
-
-.include <bsd.lib.mk>
--- lib/csu/ia64/crti.S
+++ /dev/null
@@ -1,57 +0,0 @@
-/*-
- * Copyright (c) 2001 Peter Wemm <peter at FreeBSD.org>
- * 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.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
- *
- * $FreeBSD: src/lib/csu/ia64/crti.S,v 1.3 2001/11/03 06:31:27 peter Exp $
- */
-
-/*
- * This file (and its companion crtn.S) form the terminators of the
- * .init and .fini sections.
- */
-	.file	"crti.S"
-
-	.section .init,"ax", at progbits
-	.global	_init#
-	.proc	_init#
-_init:
-	.regstk	0,2,0,0
-	.prologue 12,loc0
-	.save	ar.pfs,loc1
-	alloc	loc1=ar.pfs,0,2,0,0
-	mov	loc0=b0			/* Save return addr */
-	.body
-	.endp	_init#
-
-	.section .fini,"ax", at progbits
-	.global	_fini#
-	.proc	_fini#
-_fini:
-	.regstk	0,2,0,0
-	.prologue 12,loc0
-	.save	ar.pfs,loc1
-	alloc	loc1=ar.pfs,0,2,0,0
-	mov	loc0=b0			/* Save return addr */
-	.body
-	.endp	_fini#
--- lib/csu/ia64/crtn.S
+++ /dev/null
@@ -1,44 +0,0 @@
-/*-
- * Copyright (c) 2001 Peter Wemm <peter at FreeBSD.org>
- * 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.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
- *
- * $MidnightBSD: src/lib/csu/ia64/crtn.S,v 1.2 2008/05/16 18:43:29 laffer1 Exp $
- * $FreeBSD: src/lib/csu/ia64/crtn.S,v 1.2 2001/10/29 10:18:58 peter Exp $
- */
-
-	.file	"crtn.S"
-
-	.section .init,"ax", at progbits
-	.regstk 0,2,0,0
-	mov	b0=loc0			/* Recover return addr */
-	mov	ar.pfs=loc1
-	br.ret.sptk.many b0
-	.endp	_init#
-
-	.section .fini,"ax", at progbits
-	.regstk 0,2,0,0
-	mov	b0=loc0			/* Recover return addr */
-	mov	ar.pfs=loc1
-	br.ret.sptk.many b0
-	.endp	_fini#
--- lib/csu/ia64/Makefile
+++ /dev/null
@@ -1,24 +0,0 @@
-# $MidnightBSD: src/lib/csu/ia64/Makefile,v 1.2 2008/05/16 18:43:29 laffer1 Exp $
-# $FreeBSD: src/lib/csu/ia64/Makefile,v 1.12 2003/07/13 23:11:37 marcel Exp $
-
-.PATH: ${.CURDIR}/../common
-
-SRCS=		crt1.S crti.S crtn.S
-OBJS=		${SRCS:N*.h:R:S/$/.o/g}
-OBJS+=		gcrt1.o
-CFLAGS+=	-Wall -Wno-unused \
-		-I${.CURDIR}/../common \
-		-I${.CURDIR}/../../libc/include
-
-all: ${OBJS}
-
-CLEANFILES=	${OBJS}
-
-gcrt1.o: crt1.S
-	${CC} ${CFLAGS} -DGCRT -c -o gcrt1.o ${.ALLSRC}
-
-realinstall:
-	${INSTALL} -o ${LIBOWN} -g ${LIBGRP} -m ${LIBMODE} \
-	    ${OBJS} ${DESTDIR}${LIBDIR}
-
-.include <bsd.lib.mk>
--- lib/csu/ia64/crt1.S
+++ /dev/null
@@ -1,196 +0,0 @@
-/*
- * Copyright (c) 2003 Marcel Moolenaar
- * 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.
- *
- * 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.
- */
-
-		.ident		"$MidnightBSD: src/lib/csu/ia64/crt1.S,v 1.2 2008/05/16 18:43:29 laffer1 Exp $"
-
-		.text
-
-/*
- * void _start(char **ap, struct ps_strings *, void (*cleanup)(void));
- */
-#define	AP		in0
-#define	CLEANUP		in2
-
-#define	GP		loc0
-#define	ARGC		loc1
-#define	ARGV		loc2
-#define	ENVP		loc3
-
-		.global		_start
-		.type		_start, @function
-		.proc		_start
-_start:
-		.prologue
-		.save		rp, r0
-		.body
-{		.mlx
-		alloc		r14=ar.pfs,3,4,3,0
-		movl		r15=@gprel(1f)
-}
-1:
-{		.mmi
-		ld4		ARGC=[AP]
-		adds		ARGV=8,AP
-		mov		r16=ip
-		;;
-}
-{		.mmi
-		sub		gp=r16,r15
-		sub		GP=r16,r15
-		shladd		r14=ARGC,3,AP
-		;;
-}
-{		.mii
-		addl		r15=@ltoff(environ),gp
-		cmp4.ge		p6,p7=0,ARGC
-		adds		ENVP=16,r14
-		;;
-}
-{		.mmi
-		ld8		r14=[r15]
-(p7)		ld8		r15=[ARGV]
-		addl		r16=@gprel(__progname),gp
-		;;
-}
-{		.mib
-		st8		[r14]=ENVP
-(p7)		cmp.eq		p6,p0=0,r15
-(p6)		br.dpnt		.L1
-		;;
-}
-		/* Normalize __progname. */
-{		.mmi
-		st8		[r16]=r15
-		ld1		r14=[r15],1
-		nop		0
-		;;
-}
-.L0:
-{		.mib
-		cmp4.eq		p7,p0=0,r14
-		cmp4.eq		p6,p0=0x2f,r14
-(p7)		br.dptk		.L1
-		;;
-}
-{		.mmb
-(p6)		st8		[r16]=r15
-		ld1		r14=[r15],1
-		br.dptk.many	.L0
-}
-.L1:
-{		.mib
-		cmp.ne		p7,p0=0,CLEANUP
-		mov		out0=CLEANUP
-(p7)		br.call.sptk	b0=atexit
-		;;
-}
-{		.mfb
-		mov		gp=GP
-		nop		0
-		br.call.sptk	b0=_init_tls
-}
-#ifdef GCRT
-{		.mmi
-		mov		gp=GP
-		;;
-		addl		r14=@ltoff(@fptr(_mcleanup)),gp
-		nop		0
-		;;
-}
-{		.mfb
-		ld8		out0=[r14]
-		nop		0
-		br.call.sptk	b0=atexit
-		;;
-}
-#endif
-{		.mmi
-		mov		gp=GP
-		;;
-		addl		r14=@ltoff(@fptr(_fini)),gp
-		nop		0
-		;;
-}
-{		.mfb
-		ld8		out0=[r14]
-		nop		0
-		br.call.sptk	b0=atexit
-		;;
-}
-#ifdef GCRT
-{		.mmi
-		mov		gp=GP
-		;;
-		addl		r14=@ltoff(eprol),gp
-		addl		r15=@ltoff(etext),gp
-		;;
-}
-{		.mmb
-		ld8		out0=[r14]
-		ld8		out1=[r15]
-		br.call.sptk	b0=monstartup
-		;;
-}
-#endif
-{		.mfb
-		mov		gp=GP
-		nop		0
-		br.call.sptk	b0=_init
-		;;
-}
-{		.mmi
-		mov		gp=GP
-		mov		out0=ARGC
-		mov		out1=ARGV
-}
-{		.mfb
-		mov		out2=ENVP
-		nop		0
-		br.call.sptk	b0=main
-		;;
-}
-{		.mib
-		mov		gp=GP
-		mov		out0=r8
-		br.call.sptk	b0=exit
-		;;
-}
-		.endp		_start
-
-#ifdef GCRT
-eprol:
-#endif
-
-		.rodata
-.empty:		stringz		""
-
-		.sdata
-		.global		__progname
-		.size		__progname,8
-		.type		__progname, at object
-__progname:	data8		.empty
-
-		.common		environ,8,8


More information about the Midnightbsd-cvs mailing list