Module Name: src Committed By: tsutsui Date: Wed Jun 3 11:33:38 UTC 2020
Modified Files: src/sys/arch/arc/stand/boot: Makefile Log Message: 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) To generate a diff of this commit: cvs rdiff -u -r1.17 -r1.18 src/sys/arch/arc/stand/boot/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arc/stand/boot/Makefile diff -u src/sys/arch/arc/stand/boot/Makefile:1.17 src/sys/arch/arc/stand/boot/Makefile:1.18 --- src/sys/arch/arc/stand/boot/Makefile:1.17 Sat Apr 8 19:53:20 2017 +++ src/sys/arch/arc/stand/boot/Makefile Wed Jun 3 11:33:38 2020 @@ -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 @@ ${PROG}: ${OBJS} ${LIBS} -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