This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Set architecture for NetBSD core files
- From: Matt Thomas <matt at 3am-software dot com>
- To: Mark Kettenis <kettenis at chello dot nl>, binutils at sources dot redhat dot com
- Date: Sun, 08 Feb 2004 16:46:12 -0800
- Subject: Re: [PATCH] Set architecture for NetBSD core files
- References: <200402082318.i18NISq0040082@elgar.kettenis.dyndns.org>
At 03:18 PM 2/8/2004, Mark Kettenis wrote:
It would make my life a lot easier if a netbsd-core BFD would have its
architecture set. The attached patch accomplishes this, at least for
NetBSD/amd64, NetBSD/i386, NetBSD/sparc and NetBSD/sparc64 (and the
corresponding OpenBSD variants).
Why? netbsd-core.c is only used for the old a.out based core dump
format. Under NetBSD, ELF executables produce ELF core dumps.
NetBSD/amd64 and NetBSD/sparc64 have *always* been ELF based.
NetBSD/i386 and NetBSD/sparc have been ELF based for several years.
In fact, all NetBSD targets except ns32k use ELF.
OK to check this in? Or should I move the M_SPARC64_NETBSD and
M_X86_64_NETBSD #defines to libaout.h?
IMO, no. While I can see doing i386 and sparc, amd64 and sparc64 are
not needed. But you should also include other former a.out targets
such as vax, m68k, ns32k, and arm. (mips, alpha, and powerpc never
used a.out to significant degree).
[This is speaking as one of the NetBSD toolchain developers.]
--
Matt Thomas email: matt@3am-software.com
3am Software Foundry www: http://3am-software.com/bio/matt/
Cupertino, CA disclaimer: I avow all knowledge of this message.