Version and Platform (required):
- Binary Ninja Version: 5.4.9853-dev
- Edition: Ultimate
- OS: macOS
- OS Version: 26.4
- CPU Architecture: M1
Bug Description:
The following byte sequence is not disassembled: 20a6c6b3 (LE), b3c6a620 (BE) whereas riscv64-elf-objdump can disassemble it.
Steps To Reproduce:
- Open this file: firmware.elf.zip as rv32gc
- Navigate to 0x280a
- Observe undefined
- Python:
Architecture["rv32gc"].get_instruction_text(b"\xb3\xc6\xa6\x20", 0x280a)
- Observe empty result
riscv64-elf-objdump -d ./firmware.elf | grep -C5 280a
- Observe objdump gets it:
280a: 20a6c6b3 sh2add a3,a3,a0
Expected Behavior:
I expected all instructions to be disassembled properly
Binary:
firmware.elf.zip
Additional Information:
Source available if necessary. Probably more instructions not handled? I haven't checked too far after main didn't work. Apparently there are some places even objdump doesn't get (0x2604)... Weird that my toolchain can't disassemble the binary it can compile.
Board is a CH572D
Version and Platform (required):
Bug Description:
The following byte sequence is not disassembled: 20a6c6b3 (LE), b3c6a620 (BE) whereas riscv64-elf-objdump can disassemble it.
Steps To Reproduce:
Architecture["rv32gc"].get_instruction_text(b"\xb3\xc6\xa6\x20", 0x280a)riscv64-elf-objdump -d ./firmware.elf | grep -C5 280a280a: 20a6c6b3 sh2add a3,a3,a0Expected Behavior:
I expected all instructions to be disassembled properly
Binary:
firmware.elf.zip
Additional Information:
Source available if necessary. Probably more instructions not handled? I haven't checked too far after
maindidn't work. Apparently there are some places even objdump doesn't get (0x2604)... Weird that my toolchain can't disassemble the binary it can compile.Board is a CH572D