Skip to content

asm-differ throws a diff error for jump tables in .text from MSVC objects #193

@1superchip

Description

@1superchip

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions