Code Monkey home page Code Monkey logo

binary-reading-src's Introduction

** ファイルの内容 **
.
|-- Makefile            : ビルド用のMakefile
|-- README              : このファイル
|-- elfparser.c         : 今回作成するプログラム本体
|-- elfparser.h         : 型定義がちょこちょこと書いてあるヘッダ
`-- hello.c             : 解析対象のプログラムのソースコード. 

** ビルド方法 **
プロンプトにて、
$ make 
とうつと、
1.elfparser.c がコンパイルされて実行バイナリ elfparser に、
2.hello.c がコンパイルされて実行バイナリ hello に、
なります. その後、 自動的に ./elfparser hello
が実行されてバイナリhelloの解析を開始します.

** 今回やって頂くこと **
elfparser の主要関数である
1.is_elf
2.parse_elf_header
3.parse_program_header
4.parse_section_header
を実装して頂きます.

** 手順 **
1.Cソースコード編集 
2.make
3.readelf して実行結果を確かめる
といった手順になると思われます.

** Extra問題 **
1.parse_section_header のそれぞれの行に、シンボルテーブルから
データを引っ張ってきてセクション名を表示させる.
2.execute関数を実装して、helloのmain関数を実行できるようにする.

binary-reading-src's People

Stargazers

 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.