CVS commit: src/sys/arch/mipsco/stand
Module Name:src Committed By: mrg Date: Mon May 17 22:36:31 UTC 2021 Modified Files: src/sys/arch/mipsco/stand: Makefile.booters Log Message: also strip .eh_frame. libkern dkcksum pushed bootxx_ffs 7 bytes over a limit. remove an old comment. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/arch/mipsco/stand/Makefile.booters Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mipsco/stand/Makefile.booters diff -u src/sys/arch/mipsco/stand/Makefile.booters:1.24 src/sys/arch/mipsco/stand/Makefile.booters:1.25 --- src/sys/arch/mipsco/stand/Makefile.booters:1.24 Sat Apr 8 19:53:21 2017 +++ src/sys/arch/mipsco/stand/Makefile.booters Mon May 17 22:36:31 2021 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.booters,v 1.24 2017/04/08 19:53:21 christos Exp $ +# $NetBSD: Makefile.booters,v 1.25 2021/05/17 22:36:31 mrg Exp $ NOMAN= # defined NOPIE= # defined @@ -26,8 +26,6 @@ AFLAGS+= -D_LOCORE -D_KERNEL -DASSEMBLER # -I${.CURDIR}/../.. done by Makefile.inc CPPFLAGS+= -nostdinc -D_STANDALONE -DNO_ABICALLS -D_NO_PROM_DEFINES CPPFLAGS+= -I${.OBJDIR} -I${S} -# compiler flags for smallest code size -#CFLAGS= -Os -mmemcpy -mno-abicalls -G 128 CFLAGS= -Os -mmemcpy -ffreestanding -mno-abicalls -msoft-float -G 128 CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith @@ -68,7 +66,7 @@ CPPFLAGS+= -DPRIMARY_BOOTBLOCK \ CHECKSIZE_CMD?= SIZE=${SIZE} ${HOST_SH} ${.CURDIR}/../common/checksize.sh STRIPSECTIONS?= -R .reginfo -R .mdebug.abi32 -R .comment -R .pdr \ - -R .MIPS.abiflags -R .gnu.attributes + -R .MIPS.abiflags -R .gnu.attributes -R .eh_frame .elif defined(SECONDARY_PROG) PROG= ${SECONDARY_PROG}
CVS commit: src/sys/arch/mipsco/stand
Module Name:src Committed By: mrg Date: Mon May 17 22:36:31 UTC 2021 Modified Files: src/sys/arch/mipsco/stand: Makefile.booters Log Message: also strip .eh_frame. libkern dkcksum pushed bootxx_ffs 7 bytes over a limit. remove an old comment. To generate a diff of this commit: cvs rdiff -u -r1.24 -r1.25 src/sys/arch/mipsco/stand/Makefile.booters Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mipsco/stand/installboot
Module Name:src Committed By: mrg Date: Mon Sep 7 10:44:52 UTC 2020 Modified Files: src/sys/arch/mipsco/stand/installboot: Makefile Log Message: apply some GCC_NO_ADDR_OF_PACKED_MEMBER. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/mipsco/stand/installboot/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mipsco/stand/installboot/Makefile diff -u src/sys/arch/mipsco/stand/installboot/Makefile:1.1 src/sys/arch/mipsco/stand/installboot/Makefile:1.2 --- src/sys/arch/mipsco/stand/installboot/Makefile:1.1 Tue Sep 26 10:00:19 2000 +++ src/sys/arch/mipsco/stand/installboot/Makefile Mon Sep 7 10:44:52 2020 @@ -1,5 +1,7 @@ -# $NetBSD: Makefile,v 1.1 2000/09/26 10:00:19 wdk Exp $ +# $NetBSD: Makefile,v 1.2 2020/09/07 10:44:52 mrg Exp $ PROG= installboot +CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER} + .include
CVS commit: src/sys/arch/mipsco/stand/installboot
Module Name:src Committed By: mrg Date: Mon Sep 7 10:44:52 UTC 2020 Modified Files: src/sys/arch/mipsco/stand/installboot: Makefile Log Message: apply some GCC_NO_ADDR_OF_PACKED_MEMBER. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/arch/mipsco/stand/installboot/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mipsco/stand
Module Name:src Committed By: christos Date: Sun Sep 18 14:39:15 UTC 2016 Modified Files: src/sys/arch/mipsco/stand: Makefile.booters Log Message: Strip more useless for booters sections so that we fit. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/mipsco/stand/Makefile.booters Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mipsco/stand/Makefile.booters diff -u src/sys/arch/mipsco/stand/Makefile.booters:1.22 src/sys/arch/mipsco/stand/Makefile.booters:1.23 --- src/sys/arch/mipsco/stand/Makefile.booters:1.22 Thu Sep 8 10:40:52 2016 +++ src/sys/arch/mipsco/stand/Makefile.booters Sun Sep 18 10:39:15 2016 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.booters,v 1.22 2016/09/08 14:40:52 christos Exp $ +# $NetBSD: Makefile.booters,v 1.23 2016/09/18 14:39:15 christos Exp $ NOMAN= # defined NOPIE= # defined @@ -67,7 +67,8 @@ CPPFLAGS+= -DPRIMARY_BOOTBLOCK \ CHECKSIZE_CMD?= SIZE=${SIZE} ${HOST_SH} ${.CURDIR}/../common/checksize.sh -STRIPSECTIONS?= -R .reginfo -R .mdebug.abi32 -R .comment -R .pdr +STRIPSECTIONS?= -R .reginfo -R .mdebug.abi32 -R .comment -R .pdr \ + -R .MIPS.abiflags -R .gnu.attributes .elif defined(SECONDARY_PROG) PROG= ${SECONDARY_PROG}
CVS commit: src/sys/arch/mipsco/stand
Module Name:src Committed By: christos Date: Sun Sep 18 14:39:15 UTC 2016 Modified Files: src/sys/arch/mipsco/stand: Makefile.booters Log Message: Strip more useless for booters sections so that we fit. To generate a diff of this commit: cvs rdiff -u -r1.22 -r1.23 src/sys/arch/mipsco/stand/Makefile.booters Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mipsco/stand
Module Name:src Committed By: christos Date: Thu Sep 8 14:40:52 UTC 2016 Modified Files: src/sys/arch/mipsco/stand: Makefile.booters Makefile.inc Log Message: Avoid the PIE To generate a diff of this commit: cvs rdiff -u -r1.21 -r1.22 src/sys/arch/mipsco/stand/Makefile.booters cvs rdiff -u -r1.4 -r1.5 src/sys/arch/mipsco/stand/Makefile.inc Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mipsco/stand/Makefile.booters diff -u src/sys/arch/mipsco/stand/Makefile.booters:1.21 src/sys/arch/mipsco/stand/Makefile.booters:1.22 --- src/sys/arch/mipsco/stand/Makefile.booters:1.21 Fri Jan 31 14:38:48 2014 +++ src/sys/arch/mipsco/stand/Makefile.booters Thu Sep 8 10:40:52 2016 @@ -1,8 +1,9 @@ -# $NetBSD: Makefile.booters,v 1.21 2014/01/31 19:38:48 tsutsui Exp $ +# $NetBSD: Makefile.booters,v 1.22 2016/09/08 14:40:52 christos Exp $ NOMAN= # defined +NOPIE= # defined -.include +.include S= ${.CURDIR}/../../../.. MIPS= ${S}/arch/mips Index: src/sys/arch/mipsco/stand/Makefile.inc diff -u src/sys/arch/mipsco/stand/Makefile.inc:1.4 src/sys/arch/mipsco/stand/Makefile.inc:1.5 --- src/sys/arch/mipsco/stand/Makefile.inc:1.4 Tue Aug 27 04:53:16 2002 +++ src/sys/arch/mipsco/stand/Makefile.inc Thu Sep 8 10:40:52 2016 @@ -1,8 +1,7 @@ -# $NetBSD: Makefile.inc,v 1.4 2002/08/27 08:53:16 lukem Exp $ +# $NetBSD: Makefile.inc,v 1.5 2016/09/08 14:40:52 christos Exp $ NOMAN= # defined - -.include +NOPIE= # defined BINDIR?= /usr/mdec
CVS commit: src/sys/arch/mipsco/stand/installboot
Module Name:src Committed By: christos Date: Thu Jan 21 16:58:36 UTC 2016 Modified Files: src/sys/arch/mipsco/stand/installboot: installboot.c Log Message: PR/50683: David Binderman: Fix memory leak. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mipsco/stand/installboot/installboot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mipsco/stand/installboot/installboot.c diff -u src/sys/arch/mipsco/stand/installboot/installboot.c:1.9 src/sys/arch/mipsco/stand/installboot/installboot.c:1.10 --- src/sys/arch/mipsco/stand/installboot/installboot.c:1.9 Thu Jun 27 17:23:21 2013 +++ src/sys/arch/mipsco/stand/installboot/installboot.c Thu Jan 21 11:58:36 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: installboot.c,v 1.9 2013/06/27 21:23:21 christos Exp $ */ +/* $NetBSD: installboot.c,v 1.10 2016/01/21 16:58:36 christos Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -208,6 +208,7 @@ do_install(const char *disk, const char if (nowrite) { if (verbose) fprintf(stderr, "not writing\n"); + free(boot_code); return; }
CVS commit: src/sys/arch/mipsco/stand/installboot
Module Name:src Committed By: christos Date: Thu Jan 21 16:58:36 UTC 2016 Modified Files: src/sys/arch/mipsco/stand/installboot: installboot.c Log Message: PR/50683: David Binderman: Fix memory leak. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mipsco/stand/installboot/installboot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mipsco/stand/common
Module Name:src Committed By: christos Date: Fri Feb 14 16:04:44 UTC 2014 Modified Files: src/sys/arch/mipsco/stand/common: boot.c Log Message: make sure kernel is initialized properly. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mipsco/stand/common/boot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mipsco/stand/common/boot.c diff -u src/sys/arch/mipsco/stand/common/boot.c:1.9 src/sys/arch/mipsco/stand/common/boot.c:1.10 --- src/sys/arch/mipsco/stand/common/boot.c:1.9 Sat Jan 22 14:19:20 2011 +++ src/sys/arch/mipsco/stand/common/boot.c Fri Feb 14 11:04:44 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: boot.c,v 1.9 2011/01/22 19:19:20 joerg Exp $ */ +/* $NetBSD: boot.c,v 1.10 2014/02/14 16:04:44 christos Exp $ */ /*- * Copyright (c) 1999 The NetBSD Foundation, Inc. @@ -133,7 +133,9 @@ main(int argc, char **argv) --argc; } - } + } else + kernel = NULL; + if (dev == NULL) { (void) devsplit(argv[0], bootname); dev = bootname; @@ -156,7 +158,7 @@ main(int argc, char **argv) } } } - if (!win) + if (!win || !kernel) goto fail; strncpy(bi_bpath.bootpath, kernel, BTINFO_BOOTPATH_LEN);
CVS commit: src/sys/arch/mipsco/stand/common
Module Name:src Committed By: christos Date: Fri Feb 14 16:04:44 UTC 2014 Modified Files: src/sys/arch/mipsco/stand/common: boot.c Log Message: make sure kernel is initialized properly. To generate a diff of this commit: cvs rdiff -u -r1.9 -r1.10 src/sys/arch/mipsco/stand/common/boot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mipsco/stand/common
Module Name:src Committed By: christos Date: Thu Feb 6 18:45:35 UTC 2014 Modified Files: src/sys/arch/mipsco/stand/common: saio.c Log Message: fix the second copy of this file. XXX: merge them. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/mipsco/stand/common/saio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mipsco/stand/common/saio.c diff -u src/sys/arch/mipsco/stand/common/saio.c:1.13 src/sys/arch/mipsco/stand/common/saio.c:1.14 --- src/sys/arch/mipsco/stand/common/saio.c:1.13 Sun Jul 17 16:54:44 2011 +++ src/sys/arch/mipsco/stand/common/saio.c Thu Feb 6 13:45:35 2014 @@ -1,4 +1,4 @@ -/* $NetBSD: saio.c,v 1.13 2011/07/17 20:54:44 joerg Exp $ */ +/* $NetBSD: saio.c,v 1.14 2014/02/06 18:45:35 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -150,7 +150,7 @@ saioopen(struct open_file *f, ...) int i; char *msg; char buf[DEV_BSIZE]; - int cnt; + size_t cnt; static char device[] = dksd(0,0,10); va_list ap;
CVS commit: src/sys/arch/mipsco/stand/common
Module Name:src Committed By: christos Date: Thu Feb 6 18:45:35 UTC 2014 Modified Files: src/sys/arch/mipsco/stand/common: saio.c Log Message: fix the second copy of this file. XXX: merge them. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/sys/arch/mipsco/stand/common/saio.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mipsco/stand
Module Name:src Committed By: tsutsui Date: Fri Jan 31 19:38:48 UTC 2014 Modified Files: src/sys/arch/mipsco/stand: Makefile.booters Log Message: Make sure to define NOMAN before including bsd.own.mk. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/arch/mipsco/stand/Makefile.booters Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mipsco/stand/Makefile.booters diff -u src/sys/arch/mipsco/stand/Makefile.booters:1.20 src/sys/arch/mipsco/stand/Makefile.booters:1.21 --- src/sys/arch/mipsco/stand/Makefile.booters:1.20 Thu Jan 16 01:15:34 2014 +++ src/sys/arch/mipsco/stand/Makefile.booters Fri Jan 31 19:38:48 2014 @@ -1,4 +1,6 @@ -# $NetBSD: Makefile.booters,v 1.20 2014/01/16 01:15:34 christos Exp $ +# $NetBSD: Makefile.booters,v 1.21 2014/01/31 19:38:48 tsutsui Exp $ + +NOMAN= # defined .include bsd.own.mk @@ -8,7 +10,6 @@ MIPSCO= ${S}/arch/mipsco .PATH: ${.CURDIR}/../common -NOMAN= # defined BINMODE?= 444 # XXX SHOULD NOT NEED TO DEFINE THESE!
CVS commit: src/sys/arch/mipsco/stand
Module Name:src Committed By: tsutsui Date: Fri Jan 31 19:38:48 UTC 2014 Modified Files: src/sys/arch/mipsco/stand: Makefile.booters Log Message: Make sure to define NOMAN before including bsd.own.mk. To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/arch/mipsco/stand/Makefile.booters Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mipsco/stand
Module Name:src Committed By: matt Date: Wed Aug 21 07:13:51 UTC 2013 Modified Files: src/sys/arch/mipsco/stand: Makefile.booters Log Message: Use bsd.klinks.mk Add missing ${_MKTARGET_LINK} To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/arch/mipsco/stand/Makefile.booters Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mipsco/stand/Makefile.booters diff -u src/sys/arch/mipsco/stand/Makefile.booters:1.17 src/sys/arch/mipsco/stand/Makefile.booters:1.18 --- src/sys/arch/mipsco/stand/Makefile.booters:1.17 Sat Jan 22 19:19:19 2011 +++ src/sys/arch/mipsco/stand/Makefile.booters Wed Aug 21 07:13:51 2013 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.booters,v 1.17 2011/01/22 19:19:19 joerg Exp $ +# $NetBSD: Makefile.booters,v 1.18 2013/08/21 07:13:51 matt Exp $ .include bsd.sys.mk # for HOST_SH @@ -17,21 +17,7 @@ LIBC= LIBCRTBEGIN= LIBCRTEND= -.PHONY: machine-links -beforedepend: machine-links - -machine-links: machine mipsco mips -machine mipsco: - -rm -f ${.TARGET} - ln -s ${MIPSCO}/include ${.TARGET} - -mips: - -rm -f ${.TARGET} - ln -s ${MIPS}/include ${.TARGET} - -CLEANFILES+= machine mipsco mips - -realall: machine-links ${PROG} +realall: ${PROG} AFLAGS+= -D_LOCORE -D_KERNEL -DASSEMBLER -mno-abicalls # -I${.CURDIR}/../.. done by Makefile.inc @@ -124,7 +110,8 @@ vers.c: ${.CURDIR}/version ${HOST_SH} ${S}/conf/newvers_stand.sh ${${MKREPRO} == yes :?:-D} \ -N ${.CURDIR}/version mipsco -${PROG}: machine-links ${LDSCRIPT} ${OBJS} ${LIBS} +${PROG}: ${LDSCRIPT} ${OBJS} ${LIBS} + ${_MKTARGET_LINK} ${LD} ${OFORMAT} -Map ${PROG}.map -N -x -Ttext ${LOAD_ADDRESS} \ -T ${LDSCRIPT} -e start -o ${PROG} ${OBJS} ${LIBS} @${SIZE} ${PROG} @@ -146,3 +133,4 @@ cleanlibdir: -rm -rf lib .include bsd.prog.mk +.include bsd.klinks.mk
CVS commit: src/sys/arch/mipsco/stand
Module Name:src Committed By: matt Date: Wed Aug 21 07:13:51 UTC 2013 Modified Files: src/sys/arch/mipsco/stand: Makefile.booters Log Message: Use bsd.klinks.mk Add missing ${_MKTARGET_LINK} To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/arch/mipsco/stand/Makefile.booters Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/sys/arch/mipsco/stand/installboot
Module Name:src Committed By: christos Date: Thu Jun 27 21:23:21 UTC 2013 Modified Files: src/sys/arch/mipsco/stand/installboot: installboot.c Log Message: free boot_code http://M00nBSD.net/ae123a9bae03f7dde5c6d654412daf5a.html To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/mipsco/stand/installboot/installboot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/arch/mipsco/stand/installboot/installboot.c diff -u src/sys/arch/mipsco/stand/installboot/installboot.c:1.8 src/sys/arch/mipsco/stand/installboot/installboot.c:1.9 --- src/sys/arch/mipsco/stand/installboot/installboot.c:1.8 Wed Mar 18 06:22:32 2009 +++ src/sys/arch/mipsco/stand/installboot/installboot.c Thu Jun 27 17:23:21 2013 @@ -1,4 +1,4 @@ -/* $NetBSD: installboot.c,v 1.8 2009/03/18 10:22:32 cegger Exp $ */ +/* $NetBSD: installboot.c,v 1.9 2013/06/27 21:23:21 christos Exp $ */ /* * Copyright (c) 2000 The NetBSD Foundation, Inc. @@ -219,6 +219,7 @@ do_install(const char *disk, const char if ((fd = open(disk, O_WRONLY)) == -1) FATALIO(open %s, bootstrap); len = pwrite(fd, boot_code, boot_size, BOOTBLOCK_OFFSET); + free(boot_code); if (len == -1) FATAL(write %s, disk); if (len != boot_size)
CVS commit: src/sys/arch/mipsco/stand/installboot
Module Name:src Committed By: christos Date: Thu Jun 27 21:23:21 UTC 2013 Modified Files: src/sys/arch/mipsco/stand/installboot: installboot.c Log Message: free boot_code http://M00nBSD.net/ae123a9bae03f7dde5c6d654412daf5a.html To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9 src/sys/arch/mipsco/stand/installboot/installboot.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.