Objdump: Add "-M annotate" option to the AArch64 disassembler
The AArch64 disassembler in objdump now accepts the "-M annotate" option to display symbols associated with undefined instructions.
The AArch64 disassembler in objdump now supports the -M annotate option, which displays the symbol associated with undefined instructions, if one exists. This enhancement allows developers to more easily identify the source of undefined instructions during disassembly, aiding in debugging and reverse engineering.
In Details
This commit adds the -M annotate option to the AArch64 disassembler in objdump. This option displays the symbol associated with undefined instructions. The changes involve modifying opcodes/aarch64-dis.c and adding new test cases in the binutils/testsuite directory. This enhancement primarily benefits developers who need to debug or reverse engineer AArch64 binaries.
For Context
objdump is a command-line tool that displays information about object files, including disassembling the executable code. Disassembly converts machine code back into human-readable assembly language. This commit adds a new option, -M annotate, to objdump's AArch64 disassembler (the part that handles AArch64 architecture binaries). When used, this option will attempt to show the name of the symbol associated with any undefined instructions, providing more context to the disassembled output and making it easier to understand the code.