8000 x/arch/x86/x86asm: Mem.Disp is positive for negative displacements · Issue #8000 · golang/go · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
x/arch/x86/x86asm: Mem.Disp is positive for negative displacements #8000
Open
@josharian

Description

@josharian
The instruction 48 8b 0c 25 c0 5c 07 80 is disassembled as MOVQ 0x80075cc0, CX. It
should be disassembled as MOVQ 0xffffffff80075cc0, CX. Addresses are signed, and should
be sign-extended. See the discussion in issue #7980 for details.

To reproduce, run 'go tool objdump addr31 0x2000 0x2012'. addr31 is attached. It was
created by stripping a binary built from the code in issue #7980.

Attachments:

  1. addr31.gz (153196 bytes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0