objdump for old ARM7TDMI (ARMv4T) showing instructions for newer architectures?!

Paul Brook paul@codesourcery.com
Tue Jun 16 17:26:00 GMT 2009


> >> +       if ((insn->arch & (* (unsigned long *) info->private_data)) ==
> >
> > Insn->arch values in arm-dis.c are bogus, and have been for some time
> > (since we got more than 32 bit flags).
>
> Well phoo.  They seem to work though.

There's currently only limited overlap between different bitflags, so you 
probably wouldn't notice with v4 code.

> What is the officially correct way of determining the architectures that
> support a given instruction ?

Probably something along the lines of what is used in gas/config/tc-arm.c 
(ARM_CPU_HAS_FEATURE et al).

Paul



More information about the Binutils mailing list