Add ELF emulation, and make it default if OBJECT_FMT == ELF

This commit is contained in:
christos 1999-01-11 09:53:26 +00:00
parent c91ac313c1
commit ae2cecd233
2 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,8 @@
# $NetBSD: _i386.mk,v 1.1 1998/12/12 21:57:19 kristerw Exp $ # $NetBSD: _i386.mk,v 1.2 1999/01/11 09:53:26 christos Exp $
EMULS= i386nbsd EMULS= i386nbsd elf_i386
.if ${OBJECT_FMT} == "ELF"
DEFAULT_EMUL= elf_i386
.else
DEFAULT_EMUL= i386nbsd DEFAULT_EMUL= i386nbsd
.endif

View File

@ -1,10 +1,11 @@
/* $NetBSD: ldemul-list.h,v 1.4 1998/12/17 13:59:05 mrg Exp $ */ /* $NetBSD: ldemul-list.h,v 1.5 1999/01/11 09:53:26 christos Exp $ */
/* alpha emulations */ /* alpha emulations */
extern ld_emulation_xfer_type ld_elf64alpha_emulation; extern ld_emulation_xfer_type ld_elf64alpha_emulation;
/* i386 emulations */ /* i386 emulations */
extern ld_emulation_xfer_type ld_i386nbsd_emulation; extern ld_emulation_xfer_type ld_i386nbsd_emulation;
extern ld_emulation_xfer_type ld_elf_i386_emulation;
/* mips emulations */ /* mips emulations */
extern ld_emulation_xfer_type ld_elf32lmip_emulation; extern ld_emulation_xfer_type ld_elf32lmip_emulation;