RFC: Annotate immediates in x86 disassembly
Michael Matz
matz@suse.de
Thu Apr 23 12:49:09 GMT 2026
Hey,
On Thu, 23 Apr 2026, Nick Clifton wrote:
> * The annotation is displayed as a comment at the end of the line.
Nice!
> Thoughts, comments ?
I'm unworried about the size increase of instr_info, there exists exactly
one instance of it globally (while print_insn runs, on the stack). It may
be nice to separate multiple annotations by comma, and/or to integrate the
%rip-relative print_address_func() call with the
new number-related-symbol hint print into one loop (so that the order of
comments relative to the printed order of operands is correct), but I
think that that shouldn't hold off the patch.
And leaks when asprintf returns zero... hmm, who cares :)
Ciao,
Michael.
More information about the Binutils
mailing list