This directory contains examples that show howto call binutils
bfd and
opcodes libraries from C:
- 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
- test_buffer_x86_64: this example shows howto disassemble a buffer containing x86 instructions
- 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.
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.