diff options
author | 2010-07-10 17:04:22 +0000 | |
---|---|---|
committer | 2010-07-10 17:04:22 +0000 | |
commit | 4f266d6aace5f684aa7fd885989a14cb94e74578 (patch) | |
tree | 8fa5d087eff5620283ce7f10cb2ed30c4b145d85 | |
parent | link bootblocks with -Z instead of -N, to ensure that the file offset and (diff) | |
download | wireguard-openbsd-4f266d6aace5f684aa7fd885989a14cb94e74578.tar.xz wireguard-openbsd-4f266d6aace5f684aa7fd885989a14cb94e74578.zip |
actually, pxeboot must remain linked with -N
-rw-r--r-- | sys/arch/i386/stand/pxeboot/Makefile | 7 |
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}; \ |