Skip to content

x86: Explicit displacement of 0 is considered the same as an implicit displacement of 0 #233

@1superchip

Description

@1superchip

https://decomp.me/scratch/kGFk1

x86 has different encodings for instructions such as an implicit displacement of 0 and an explicit displacement of 0. Currently, objdiff is treating them as the same even though they are different sizes and encodings.

Not sure of an expected behavior to show the differences but objdump shows an offset of 0x0 for the explicit displacement and nothing (as objdiff is doing for both) for the implicit displacement of 0x0.

I have linked the scratch that uses objdiff on decomp.me but this issue does show up locally in objdiff.

Image Image

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