Add stubs for PE/COFF.
This commit is contained in:
parent
e9deffe0bf
commit
9dcdff8f25
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: files.i386,v 1.159 2000/05/11 16:38:10 jdolecek Exp $
|
||||
# $NetBSD: files.i386,v 1.160 2000/06/04 16:26:11 mycroft Exp $
|
||||
#
|
||||
# new style config file for i386 architecture
|
||||
#
|
||||
|
@ -313,6 +313,9 @@ file arch/i386/i386/freebsd_machdep.c compat_freebsd
|
|||
# a.out binary compatibility (COMPAT_AOUT)
|
||||
include "compat/aout/files.aout"
|
||||
|
||||
# Win32 binary compatibility (COMPAT_PECOFF)
|
||||
include "compat/pecoff/files.pecoff"
|
||||
|
||||
# OSS audio driver compatibility
|
||||
include "compat/ossaudio/files.ossaudio"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: files,v 1.370 2000/06/03 14:36:32 itojun Exp $
|
||||
# $NetBSD: files,v 1.371 2000/06/04 16:26:12 mycroft Exp $
|
||||
|
||||
# @(#)files.newconf 7.5 (Berkeley) 5/10/93
|
||||
|
||||
|
@ -45,6 +45,7 @@ defopt COMPAT_AOUT
|
|||
defopt COMPAT_M68K4K
|
||||
defopt COMPAT_VAX1K
|
||||
defopt COMPAT_43
|
||||
defopt COMPAT_PECOFF
|
||||
defopt opt_compat_netbsd.h COMPAT_09 COMPAT_10 COMPAT_11 COMPAT_12
|
||||
COMPAT_13 COMPAT_14 COMPAT_NOMID
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: exec_conf.c,v 1.41 2000/01/17 02:59:25 matt Exp $ */
|
||||
/* $NetBSD: exec_conf.c,v 1.42 2000/06/04 16:26:13 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1993, 1994 Christopher G. Demetriou
|
||||
|
@ -41,6 +41,7 @@
|
|||
#include "opt_compat_netbsd32.h"
|
||||
#include "opt_compat_aout.h"
|
||||
#include "opt_compat_vax1k.h"
|
||||
#include "opt_compat_pecoff.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/exec.h>
|
||||
|
@ -74,6 +75,7 @@
|
|||
#endif
|
||||
|
||||
#ifdef COMPAT_IBCS2
|
||||
#include <sys/exec_coff.h>
|
||||
#include <compat/ibcs2/ibcs2_exec.h>
|
||||
#endif
|
||||
|
||||
|
@ -105,6 +107,11 @@
|
|||
#include <compat/aout/aout_exec.h>
|
||||
#endif
|
||||
|
||||
#ifdef COMPAT_PECOFF
|
||||
#include <sys/exec_coff.h>
|
||||
#include <compat/pecoff/pecoff_exec.h>
|
||||
#endif
|
||||
|
||||
struct execsw execsw[] = {
|
||||
#ifdef LKM
|
||||
{ 0, NULL, }, /* entries for LKMs */
|
||||
|
@ -160,6 +167,9 @@ struct execsw execsw[] = {
|
|||
#ifdef COMPAT_VAX1K
|
||||
{ sizeof(struct exec), exec_vax1k_makecmds, }, /* vax1k a.out */
|
||||
#endif
|
||||
#ifdef COMPAT_PECOFF
|
||||
{ sizeof(struct exec), exec_win32_makecmds, }, /* Win32 PE/COFF */
|
||||
#endif
|
||||
};
|
||||
int nexecs = (sizeof(execsw) / sizeof(*execsw));
|
||||
int exec_maxhdrsz;
|
||||
|
|
Loading…
Reference in New Issue