sh-coff-objdump cannot disassemble DSP instructions

Nick Clifton nickc@cambridge.redhat.com
Tue Jan 15 07:50:00 GMT 2002


Hi Arati,

> The sh-coff-objdump cannot disassemble DSP instructions  
> while the sh-elf-objdump does so. It simply interprets them as data
> (.word)

Which version of binutils are you using ?  The current sources do not
appear to exhibit this behaviour.

> The 'static int sh_dsp' in tc-sh.c is set when -dsp option is given
> to assembler.  How do I store this value in the bfd info ?

By calling bfd_set_arch_mach().  For example you might do something
like this:

  bfd_set_arch_mach (stdoutput, TARGET_ARCH,
        sh_dsp ? bfd_mach_sh_dsp : bfd_mach_sh);

in gas/config/tc-sh.c:md_begin().

Cheers
        Nick



More information about the Binutils mailing list