PowerPC disassembly of odd sized sections
authorAlan Modra <amodra@gmail.com>
Thu, 19 Mar 2020 23:46:28 +0000 (10:16 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 20 Mar 2020 02:05:51 +0000 (12:35 +1030)
commit833d919c93d52644173d587a6fc8e4dd36edc49e
tree84c6ed121c7730946bb995184cc572f44628de33
parenta859124df20f6544dbef96084e4e024bccebd853
PowerPC disassembly of odd sized sections

We shouldn't really decode a 2-byte left-over at the end of a section
as if the section contains two more bytes of zeros.  Not that it
matters very much, but this patch tidies the corner case.

* ppc-dis.c (print_insn_powerpc): Only clear needed bytes of
partially filled buffer.  Prevent lookup of 4-byte insns when
only VLE 2-byte insns are possible due to section size.  Print
".word" rather than ".long" for 2-byte leftovers.
opcodes/ChangeLog
opcodes/ppc-dis.c
This page took 0.024506 seconds and 4 git commands to generate.