asm-differ icon indicating copy to clipboard operation
asm-differ copied to clipboard

[WIP] Handle x86 MSVC jumptables

Open 1superchip opened this issue 8 months ago • 1 comments

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: image

objdump output of the assembly that is referenced from the jumptable: image

An image of the final result: image

We need <$Lnum> in the 2nd image to get the location.

1superchip avatar Apr 30 '25 15:04 1superchip