Make sure all objects strip out the .eh_frame section and force libsa/etc to
also do this for their objects. Otherwise this creates bootblocks that are too large w. binutils 2.15
This commit is contained in:
parent
4b9429a08d
commit
a6be320e8b
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.bootprogs,v 1.24 2003/10/26 07:25:35 lukem Exp $
|
||||
# $NetBSD: Makefile.bootprogs,v 1.25 2004/12/28 07:50:00 jmc Exp $
|
||||
|
||||
.include <bsd.sys.mk> # for HOST_SH
|
||||
|
||||
|
@ -124,16 +124,18 @@ COPTS+=-Os # override -O supplied by user
|
|||
|
||||
### find out what to use for libkern
|
||||
KERN_AS= library
|
||||
KERNMISCMAKEFLAGS+=-f ${.CURDIR}/../Makefile.inc
|
||||
.include "${S}/lib/libkern/Makefile.inc"
|
||||
LIBKERN= ${KERNLIB}
|
||||
|
||||
### find out what to use for libz
|
||||
Z_AS= library
|
||||
ZMISCMAKEFLAGS+=-f ${.CURDIR}/../Makefile.inc
|
||||
.include "${S}/lib/libz/Makefile.inc"
|
||||
LIBZ= ${ZLIB}
|
||||
|
||||
### find out what to use for libsa
|
||||
SA_AS= library
|
||||
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
|
||||
SAMISCMAKEFLAGS+=SA_USE_LOADFILE=yes -f ${.CURDIR}/../Makefile.inc
|
||||
.include "${S}/lib/libsa/Makefile.inc"
|
||||
LIBSA= ${SALIB}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.inc,v 1.19 2002/08/27 08:53:14 lukem Exp $
|
||||
# $NetBSD: Makefile.inc,v 1.20 2004/12/28 07:50:00 jmc Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
|
@ -9,3 +9,14 @@ WARNS?= 1
|
|||
|
||||
CPPFLAGS+= -I${.CURDIR}/../..
|
||||
LDSTATIC= -static
|
||||
|
||||
# binutils 2.15 forces a .eh_frame section into all objects. Nuke it for space
|
||||
.c.o:
|
||||
${COMPILE.c} ${.IMPSRC}
|
||||
${OBJCOPY} -R .eh_frame ${.PREFIX}.o
|
||||
.S.o:
|
||||
${COMPILE.S} ${.IMPSRC}
|
||||
${OBJCOPY} -R .eh_frame ${.PREFIX}.o
|
||||
.s.o:
|
||||
${COMPILE.s} ${.IMPSRC}
|
||||
${OBJCOPY} -R .eh_frame ${.PREFIX}.o
|
||||
|
|
Loading…
Reference in New Issue