Project

General

Profile

Feature #3317

dis(1) should support cross-target disassembly

Added by Joshua M. Clulow almost 8 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Category:
cmd - userland programs
Start date:
2012-10-28
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Presently dis(1) will only disassemble instructions in ELF binaries of the native machine type. A selection of flags are already chosen by dis based on the ELF headers in the target binary. The backend disassembly library (libdisasm) should be refactored to allow the code for all supported architectures to co-exist in one binary.

NB: A standalone version of libdisasm is built for use by kmdb(1). The standalone version needs to retain its existing small footprint and thus should only include native machine disassembly support.

#1

Updated by Electric Monk almost 6 years ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

git commit f7184619589931c4b827180c213074c470f08a8f

commit  f7184619589931c4b827180c213074c470f08a8f
Author: Joshua M. Clulow <josh@sysmgr.org>
Date:   2015-01-24T03:17:34.000Z

    3317 dis(1) should support cross-target disassembly
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Reviewed by: Joshua M. Clulow <josh@sysmgr.org>
    Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
    Approved by: Dan McDonald <danmcd@omniti.com>

Also available in: Atom PDF