Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/stand Make sure all objects strip out the .eh...
details: https://anonhg.NetBSD.org/src/rev/9d4658dc4415
branches: trunk
changeset: 572266:9d4658dc4415
user: jmc <jmc%NetBSD.org@localhost>
date: Tue Dec 28 07:50:00 2004 +0000
description:
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
diffstat:
sys/arch/alpha/stand/Makefile.bootprogs | 6 ++++--
sys/arch/alpha/stand/Makefile.inc | 13 ++++++++++++-
2 files changed, 16 insertions(+), 3 deletions(-)
diffs (53 lines):
diff -r 81f88ed1d082 -r 9d4658dc4415 sys/arch/alpha/stand/Makefile.bootprogs
--- a/sys/arch/alpha/stand/Makefile.bootprogs Tue Dec 28 05:11:07 2004 +0000
+++ b/sys/arch/alpha/stand/Makefile.bootprogs Tue Dec 28 07:50:00 2004 +0000
@@ -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 @@
### 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}
diff -r 81f88ed1d082 -r 9d4658dc4415 sys/arch/alpha/stand/Makefile.inc
--- a/sys/arch/alpha/stand/Makefile.inc Tue Dec 28 05:11:07 2004 +0000
+++ b/sys/arch/alpha/stand/Makefile.inc Tue Dec 28 07:50:00 2004 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index