n-o-o-n / idp_hexagon

Hexagon processor module for IDA Pro disassembler
GNU Lesser General Public License v3.0
97 stars 22 forks source link

LPH.flags PR_ALIGN should be cleared #6

Closed flowswitch closed 3 years ago

flowswitch commented 3 years ago

Although the core doesn't support unaligned mem accesses, there are many binaries containing "packed" unaligned 32-bit values (accessed as val = ptr[0] | (ptr[1]<<8) | (ptr[2]<<16) | (ptr[3]<<24)). PR_ALIGN flag prohibits converting such values to dwords/offsets. It looks safe to remove PR_ALIGN, code alignment is enforced in ana() already.

n-o-o-n commented 3 years ago

The latest commit fixes this issue.