Giter Club home page Giter Club logo

mwos-ghidra's Introduction

Microware OS9 Ghidra Extensions

This repo contains Ghidra loaders and analyzers for working with Microware OS9 memory modules.

Currently, only MIPS program and driver modules are supported.

Analyzer

  • Since OS9 uses a shared memory map (no virtual addresses), all code and data references are accessed via offsets from two CPU registers initialized by the OS: the CP and GP registers, respectively. For MIPS variants, Ghidra supports data references calculated / accessed through the GP ($31), but does not support code references via the CP ($30). The analyzer included in this repo adds support for this. This functionality is added directly to the built-in MIPS Constant Reference Analyzer (option (Microware OS9) Assume CP value). Note that you may need to run this analysis multiple times consecutively to discover all functions.

Loader

  • The program module loader can load OS9 program modules and also fixes data references / performs proper relocations.
  • The driver loader works, but doesn't seem to provide a very nice decompilation. There's probably a few things I'm missing regarding how the official linker lays these out / some assumptions we could make to improve the disassembly. Currently, if the driver is for an SBF device, you'll get SBF entry points added to the disassembly if you provide the path to a device descriptor for the device in the loader's options.

mwos-ghidra's People

Contributors

kevinhartman avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.