Module Name: src
Committed By: tsutsui
Date: Sun Sep 2 12:06:17 UTC 2018
Modified Files:
src/sys/arch/sgimips/stand/boot: Makefile
Log Message:
Use elf2ecoff(1) rather than objcopy(1) to generat ecoff for old machines.
objcopy(1) was used instead of elf2ecoff(1) since Makefile rev 1.9:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/sgimips/stand/boot/Makefile#rev1.9
but it looks ELF binaries generated by recent binutils are too complicated
to convert them to ecoff for old machines by objcopy(1).
Reported by Naruaki Etomi in PR port-sgimips/53519.
Should be pulled up to at least netbsd-8.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/sgimips/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/sgimips/stand/boot/Makefile
diff -u src/sys/arch/sgimips/stand/boot/Makefile:1.19 src/sys/arch/sgimips/stand/boot/Makefile:1.20
--- src/sys/arch/sgimips/stand/boot/Makefile:1.19 Sat Feb 26 16:26:58 2011
+++ src/sys/arch/sgimips/stand/boot/Makefile Sun Sep 2 12:06:16 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2011/02/26 16:26:58 matt Exp $
+# $NetBSD: Makefile,v 1.20 2018/09/02 12:06:16 tsutsui Exp $
# Don't strip the ECOFF'ed version on install -- strip gets confused by that,
@@ -12,10 +12,7 @@ SRCS= start.S boot.c bootinfo.c conf.c d
PROG= aoutboot
${PROG}: ip2xboot ip3xboot
.if ${MACHINE_ARCH} == "mipseb"
- ${OBJCOPY} --impure -O ecoff-bigmips \
- -R .pdr -R .mdebug.nabi32 -R .mdebug.abi32 \
- -R .comment -R .ident \
- ip2xboot ${.TARGET}
+ ${ELF2ECOFF} ip2xboot ${.TARGET}
.else
touch ${.TARGET}
.endif