Add ELF bits. -N does not work, because ld does not compute the correct

memsz.
This commit is contained in:
christos 1999-01-28 20:04:54 +00:00
parent 6092648541
commit 6922bd9c58
1 changed files with 9 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: Makefile.i386,v 1.96 1999/01/15 23:37:06 thorpej Exp $
# $NetBSD: Makefile.i386,v 1.97 1999/01/28 20:04:54 christos Exp $
# Makefile for NetBSD
#
@ -18,6 +18,8 @@
# -DTRACE compile in kernel tracing hooks
# -DQUOTA compile in file system quotas
.include <bsd.own.mk>
# DEBUG is set to -g if debugging.
# PROF is set to -pg if profiling.
@ -52,7 +54,12 @@ CWARNFLAGS+= -Wno-main
.endif
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS}
AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE
LINKFLAGS= -z -Ttext F0100000 -e start
LINKFLAGS= -Ttext F0100000 -e start
.if (${OBJECT_FMT} == "ELF")
#LINKFLAGS+= -N
.else
LINKFLAGS+= -z
.endif
STRIPFLAGS= -d
### find out what to use for libkern