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


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


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