Skip to content

Latest commit

 

History

History

resources

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Playing with libfd and libopcodes

This directory contains examples that show howto call binutils bfd and opcodes libraries from C:

  1. test_binary: this is the example from https://www.toothycat.net/wiki/wiki.pl?Binutils/libopcodes that was adapt to work with binutils 2.29.1
  2. test_buffer_x86_64: this example shows howto disassemble a buffer containing x86 instructions
  3. test_buffer_mep: similar to the second example with a more exotic architecture and binutils builtins

As of September 2024, the following documentation is outdated: For convenience, the libbfd and libopcodes documentation from toothycat.net is archived in this repository.

Building examples

The examples assume that binutils 2.43 is built at the root of this repostitory.

It can be compiled by doing cargo build at the root of this repository.