RFC: Annotate immediates in x86 disassembly
Nick Clifton
nickc@redhat.com
Thu Apr 23 11:03:09 GMT 2026
Hi Guys,
Attached is a v2 of the proposed patch. It adds:
* The annotation is displayed as a comment at the end of the line.
* The symbol name is displayed in dis_style_symbol rather than dis_style_address.
* Shared object files (type ET_DYN) can also benefit from the new feature.
There are a couple of potential issues with the patch:
* It adds a new buffer to the instr_info structure, making it even bigger.
* There are opportunities for sharing code with the oappend_*() functions
which I did not take. (Mainly to keep the code in the patch simple).
* There are opportunities for other places in the dissaembler to add comments
of their own, but I figured that these could be added later, if they
were actually deemed worthwhile.
Thoughts, comments ?
Cheers
Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: objdump.x86.annotate.patch.2
Type: application/x-troff-man
Size: 6991 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20260423/3457425c/attachment-0001.2>
More information about the Binutils
mailing list