[DynInst_API:] [dyninst/dyninst] c8d8c2: Fix on x86-64 the mov instruction for register of ...


Date: Thu, 03 Jan 2019 16:30:04 -0800
From: Sasha Nicolas <sasha@xxxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] c8d8c2: Fix on x86-64 the mov instruction for register of ...
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: c8d8c204cdb43576fdaaabf16110681e445a4ad8
      https://github.com/dyninst/dyninst/commit/c8d8c204cdb43576fdaaabf16110681e445a4ad8
  Author: Sasha Nicolas <sasha@xxxxxxxxxxx>
  Date:   2019-01-03 (Thu, 03 Jan 2019)

  Changed paths:
    M dyninstAPI/src/Relocation/CodeMover.h
    M dyninstAPI/src/addressSpace.C
    M dyninstAPI/src/codegen.C
    M dyninstAPI/src/emit-x86.C

  Log Message:
  -----------
  Fix on x86-64 the mov instruction for register of 16-bit size.
The opcode 89h is for both 32-bit and 16-bit but to use
the 16-bit version it's necessary to add an operand-size prefix
byte of value 66h.
Test snip_ref_shlib_var now passing on x86-64 linux.



      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] c8d8c2: Fix on x86-64 the mov instruction for register of ..., Sasha Nicolas <=