This is the mail archive of the binutils@sourceware.org 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: objdump for old ARM7TDMI (ARMv4T) showing instructions for newer architectures?!


> >> +       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


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