Reduce INSTALL_TINY by 1.3KB.
Support for a.out coredumps is now conditional on EXEC_AOUT, EXEC_COFF, EXEC_ECOFF, or EXEC_MACHO, or LKM. Since coredump_netbsd is the only user of cpu_coredump, make that conditional too. Lastly, add 'no options EXEC_AOUT' so the EXEC_AOUT option in std.i386 can be overridden.
This commit is contained in:
parent
273876cfba
commit
7728c19903
@ -1,6 +1,4 @@
|
||||
# $NetBSD: INSTALL_TINY,v 1.87 2005/03/25 23:28:44 cube Exp $
|
||||
#
|
||||
# INSTALL_TINY - Tiny Installation kernel, suitable for 4M machines.
|
||||
# $NetBSD: INSTALL_TINY,v 1.88 2005/06/12 00:24:32 matt Exp $
|
||||
#
|
||||
# This kernel should be derived from INSTALL (which is derived
|
||||
# from GENERIC) with some features commented out.
|
||||
@ -69,6 +67,7 @@ options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
|
||||
options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
|
||||
#options SYSCTL_INCLUDE_DESCR # Include sysctl descriptions in kernel
|
||||
options MALLOC_NOINLINE # Not inlining MALLOC saves memory
|
||||
no options EXEC_AOUT # we don't a.out support
|
||||
|
||||
# Diagnostic/debugging support options
|
||||
#options DIAGNOSTIC # expensive kernel consistency checks
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: vm_machdep.c,v 1.120 2005/06/10 05:10:12 matt Exp $ */
|
||||
/* $NetBSD: vm_machdep.c,v 1.121 2005/06/12 00:24:32 matt Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986 The Regents of the University of California.
|
||||
@ -80,12 +80,13 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.120 2005/06/10 05:10:12 matt Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.121 2005/06/12 00:24:32 matt Exp $");
|
||||
|
||||
#include "opt_user_ldt.h"
|
||||
#include "opt_largepages.h"
|
||||
#include "opt_mtrr.h"
|
||||
#include "opt_noredzone.h"
|
||||
#include "opt_execfmt.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -265,6 +266,8 @@ cpu_lwp_free(struct lwp *l, int proc)
|
||||
#endif
|
||||
}
|
||||
|
||||
#if defined(EXEC_AOUT) || defined(EXEC_COFF) || defined(EXEC_ECOFF) || \
|
||||
defined(EXEC_MACHO) || defined(LKM)
|
||||
/*
|
||||
* Dump the machine specific segment at the start of a core dump.
|
||||
*/
|
||||
@ -311,6 +314,7 @@ cpu_coredump(struct lwp *l, void *iocookie, struct core *chdr)
|
||||
return coredump_write(iocookie, UIO_SYSSPACE,
|
||||
&md_core, sizeof(md_core));
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef NOREDZONE
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
# $NetBSD: files,v 1.717 2005/04/20 13:44:45 blymn Exp $
|
||||
# $NetBSD: files,v 1.718 2005/06/12 00:24:32 matt Exp $
|
||||
|
||||
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
|
||||
|
||||
@ -1193,7 +1193,8 @@ file kern/bufq_priocscan.c bufq_priocscan
|
||||
file kern/bufq_readprio.c bufq_readprio | new_bufq_strategy
|
||||
file kern/core_elf32.c exec_elf32
|
||||
file kern/core_elf64.c exec_elf64
|
||||
file kern/core_netbsd.c
|
||||
file kern/core_netbsd.c exec_aout | exec_coff | exec_ecoff |
|
||||
exec_macho | lkm
|
||||
file kern/cnmagic.c
|
||||
file kern/exec_aout.c exec_aout
|
||||
file kern/exec_conf.c
|
||||
|
Loading…
Reference in New Issue
Block a user