This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sh-coff-objdump cannot disassemble DSP instructions


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]