Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips/stand/boot Use elf2ecoff(1) rather than obj...



details:   https://anonhg.NetBSD.org/src/rev/d1dc01c3d5fe
branches:  trunk
changeset: 993253:d1dc01c3d5fe
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sun Sep 02 12:06:16 2018 +0000

description:
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.

diffstat:

 sys/arch/sgimips/stand/boot/Makefile |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (21 lines):

diff -r 7d70fcd8f9d9 -r d1dc01c3d5fe sys/arch/sgimips/stand/boot/Makefile
--- a/sys/arch/sgimips/stand/boot/Makefile      Sun Sep 02 10:07:17 2018 +0000
+++ b/sys/arch/sgimips/stand/boot/Makefile      Sun Sep 02 12:06:16 2018 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index