Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/stand/ofwboot Strip debug symbols from ofwboot.
details: https://anonhg.NetBSD.org/src/rev/acb2d0f1e335
branches: trunk
changeset: 335531:acb2d0f1e335
user: martin <martin%NetBSD.org@localhost>
date: Sun Jan 11 22:59:25 2015 +0000
description:
Strip debug symbols from ofwboot.
The forth bootsector loading this file when booting from disk is
"simplistic" and does not skip non loadable sections. The five times
bigger file with debug info overruns some important memory contents
with some firmware versions otherwise.
diffstat:
sys/arch/sparc/stand/ofwboot/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 0ab853fa5f3d -r acb2d0f1e335 sys/arch/sparc/stand/ofwboot/Makefile
--- a/sys/arch/sparc/stand/ofwboot/Makefile Sun Jan 11 20:52:57 2015 +0000
+++ b/sys/arch/sparc/stand/ofwboot/Makefile Sun Jan 11 22:59:25 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.32 2014/01/12 15:26:31 tsutsui Exp $
+# $NetBSD: Makefile,v 1.33 2015/01/11 22:59:25 martin Exp $
CURDIR= ${.CURDIR}
S= ${CURDIR}/../../../..
@@ -103,7 +103,7 @@
.else
${PROG}: ${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN}
${_MKTARGET_LINK}
- ${LD} -X -N -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} \
+ ${LD} -X -N -S -Ttext ${RELOC} -e ${ENTRY} -o ${PROG} \
${OBJS} ${LIBSA} ${LIBZ} ${LIBKERN} # native linker
.endif
Home |
Main Index |
Thread Index |
Old Index