This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: sh-coff-objdump cannot disassemble DSP instructions
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: Arati Dikey <AratiD at kpit dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 14 Jun 2002 17:10:50 +0100
- Subject: Re: sh-coff-objdump cannot disassemble DSP instructions
- Organization: SuperH UK Ltd.
- References: <97AA06615400F34AB695F23CE3D42E9148817C@sohm.kpit.com>
Arati Dikey wrote:
>
> hi !
>
> The sh-coff-objdump cannot disassemble DSP instructions
> while the sh-elf-objdump does so. It simply interprets them as data
> (.word)
sh-elf stores the 'mach'(ine) information in the elf flags. We have
no matching mechanism in place for sh-coff. Hence objdump has no
way to tell what SH variant the code is for. Note that sh-dsp
/ sh3-dsp use 0xfxxx opcodes for dsp instructions that are used by
the sh3e / sh4 or floating point, so there is no all-encompassing
instruction set that we could use. We'd have to implement a way
to store the mach value for sh-coff. That is, if we care about
not having to specify -msh_dsp to objdump when using coff for sh-dsp.
--
--------------------------
SuperH
2430 Aztec West / Almondsbury / BRISTOL / BS32 4AQ
T:+44 1454 462330