summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-10 17:04:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-07-10 17:04:23 +0000
commit7aadb3b4c457493922b8fd26877b2feb65da61fe (patch)
tree9b2883568d84c05c7e596cd416dd51f1071afc08
parent9ce6cdf63a71b2154d091006f47548ca9b739d0a (diff)
actually, pxeboot must remain linked with -N
-rw-r--r--sys/arch/i386/stand/pxeboot/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/i386/stand/pxeboot/Makefile b/sys/arch/i386/stand/pxeboot/Makefile
index a4f0933805a..cc03b319b58 100644
--- a/sys/arch/i386/stand/pxeboot/Makefile
+++ b/sys/arch/i386/stand/pxeboot/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.4 2010/07/10 16:11:44 deraadt Exp $
+# $OpenBSD: Makefile,v 1.5 2010/07/10 17:04:22 deraadt Exp $
.include "${.CURDIR}/../Makefile.inc"
@@ -11,8 +11,8 @@ SIZE?= size
LDFLAGS+=-nostdlib -Bstatic
INSTALL_STRIP=
-LDFLAGS+=-Ttext $(LINKADDR) -Z -x -noinhibit-exec
-CLEANFILES+= crt0.o
+LDFLAGS+=-Ttext $(LINKADDR) -N -x -noinhibit-exec
+CLEANFILES+= crt0.o ${PROG}.whole
SRCS= srt0.S
SRCS+= boot.c cmd.c vars.c bootarg.c conf.c devopen.c net.c open.c
@@ -30,6 +30,7 @@ SRCS+= strlcpy.c moddi3.c divdi3.c qdivrem.c
${PROG}: $(OBJS) $(DPADD)
$(LD) $(LDFLAGS) -o ${PROG} $(OBJS) $(LDADD)
@$(SIZE) ${PROG}
+ cp ${PROG} ${PROG}.whole
@if [ -x ${.OBJDIR}/${PROG} ]; then \
objcopy -O binary ${PROG} ${.OBJDIR}/.tmp;\
mv -f ${.OBJDIR}/.tmp ${.OBJDIR}/${PROG}; \