Coder Social home page Coder Social logo

nm-otool's Introduction

nm-otool

Toy implementation of nm & otool bsd commands. The general idea was to learn how a binary file work and how to parse it properly.

These tools only support mach-o files.

Build & run

Just run make, it will generate ft_nm and ft_otool.

Tests

You can test nm with some system binaries by launching make test_all. It will assert there is no output difference between my implementation and the current system implementation. Tests will take some time to complete!

ft_nm

Usage

./ft_nm -uUrpj [FILE ...]

Options

-u     Display only undefined symbols.
-U     Don't display undefined symbols.
-r     Sort in reverse order.
-p     Don't sort; display in symbol-table order.
-j     Just display the symbol names (no value or type).

ft_otool

Usage

./ft_otool -td [FILE ...]

Options

-t     Display the contents of the (__TEXT,__text) section.
-d     Display the contents of the (__DATA,__data) section.

This project is a student exercise and is by no mean intended to be used for real

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.