asm-differ
asm-differ copied to clipboard
asm-differ throws a diff error for jump tables in `.text` from MSVC objects
MSVC emits jump tables in .text which has caused diff errors for objects that contain jump tables in .text.
Jump table entries are disassembled by objdump as:
0000003c <$L282>:
3c: 00 00 add %al,(%eax)
3c: dir32 $L272-0x11
3e: 00 00 add %al,(%eax)
There are 2 instructions as the jump table entry is relocatable and is 0x00000000 in the object. 0x0000 is disassembled to add %al,(%eax).
It would be great if these were properly handled to prevent diff errors and to give more information to the user.