binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

Thumb2 ELF files with even entry point address are forced to be processed as ARMv7

Open Martyx00 opened this issue 1 year ago • 0 comments

Version and Platform (required):

  • Binary Ninja Version: 4.2.6063-dev
  • OS: Ubuntu Linux
  • OS Version: 24.04
  • CPU Architecture: x64

Bug Description: When loading Thumb2 ELF file, if the entry point address is even, it is not possible to override the architecture selection, and the binary is processed as ARMv7.

Steps To Reproduce: Create an ELF binary and change the entry point to even value (unfortunately some tools generate ELFs like this).

Expected Behavior: Ideally, manually setting the platform/architecture should force analysis for that specific platform. If that is not a way to go, selecting Thumb2 should add +1 to the entry point if it is even to force this behavior. Final alternative would be to allow editing the value of the entry point (currently its read-only).

Screenshots/Video Recording: N/A.

Binary: N/A

Additional Information: Please add any other context about the problem here.

Martyx00 avatar Sep 30 '24 09:09 Martyx00