This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: [PATCH] RS6000 and PowerPC CPU types
> Date: Fri, 12 May 2000 19:52:17 -0400
> From: Nick Duffek <nsd@cygnus.com>
[huge snip]
> However, as you mention later, GDB could use it for choosing instruction
> sets during disassembly, and presumably there are other uses for it.
>
> Therefore, isn't it worthwhile making it be as correct as possible? And
> isn't it incorrect to assume that XCOFF64 implies a 620?
It is only worthwhile if it doesn't cause problems. The reason
XCOFF64 chooses a 620 is that the 620 is a 64-bit PowerPC cpu. You
could choose another 64-bit PowerPC cpu, or something, but I don't
think saying "I have no idea at all" is good; it will cause objdump to
fail to disassemble anything.
In fact, that is the main use of coff_set_arch_mach_hook: it chooses
the instruction set used for disassembly. I don't think there's any
other easy way to get from an object file format to an architecture.
--
- Geoffrey Keating <geoffk@cygnus.com>