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: RFC: Is it OK to disassemble instructions twice ?


Hi Tamar,

> But simply removing the code around the FIXME gets it to generate the right code.

For the ARM yes, but not necessarily other architectures.

So either the disassembler needs to know that for a given
architecture all possible relocs will always address the
start of an instruction, or else it needs a way to determine
the length of the instruction.  (With the possibility that
if a maximum instruction length is known, then the length
test is only needed if the relocation is nearby).

Cheers
  Nick



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