Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arc/stand/boot Explicitly strip debug info on calli...
details: https://anonhg.NetBSD.org/src/rev/6615505c0aa7
branches: trunk
changeset: 972683:6615505c0aa7
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed Jun 03 11:33:38 2020 +0000
description:
Explicitly strip debug info on calling objdump for ecoff boot binaries.
As noted by martin@ on tech-toolchain@, release binaries are built
with MKDEBUG=yes so standalone binaries should explicitly remove
debug info generated by -g option.
https://mail-index.netbsd.org/tech-toolchain/2020/06/02/msg003809.html
Should be pulled up to netbsd-9.
(ARC BIOS gets confused by debug info sections in ecoff binaries
and boot binary in 9.0 doesn't work)
diffstat:
sys/arch/arc/stand/boot/Makefile | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r fd676183d504 -r 6615505c0aa7 sys/arch/arc/stand/boot/Makefile
--- a/sys/arch/arc/stand/boot/Makefile Wed Jun 03 07:06:18 2020 +0000
+++ b/sys/arch/arc/stand/boot/Makefile Wed Jun 03 11:33:38 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2017/04/08 19:53:20 christos Exp $
+# $NetBSD: Makefile,v 1.18 2020/06/03 11:33:38 tsutsui Exp $
.include <bsd.init.mk>
@@ -62,7 +62,7 @@
-e start -o ${PROG}.elf ${OBJS} ${LIBS}
@${SIZE} ${PROG}.elf
${OBJCOPY} --impure -O ecoff-littlemips \
- -R .pdr -R .mdebug.abi32 -R .comment -R .ident \
+ -R .pdr -R .mdebug.abi32 -R .comment -R .ident --strip-debug \
${PROG}.elf ${.TARGET}
CLEANFILES+= ${PROG}.elf ${PROG}.map
Home |
Main Index |
Thread Index |
Old Index