asm-differ
asm-differ copied to clipboard
[WIP] Handle x86 MSVC jumptables
This is a draft pr that implements handling of MSVC jumptables for x86. It currently requires diff function symbols to work properly as that is needed for the labels to be processed but it should not require that in the long run.
A small issue with this is that if there are multiple text sections, arrows will be shown in each text section. There was also an issue with objdump not emitting proper information for jumptables in a 2nd text section if the first section had a jump table.
objdump output of the jumptable:
objdump output of the assembly that is referenced from the jumptable:
An image of the final result:
We need <$Lnum> in the 2nd image to get the location.