binutils ported to the zig build system
  • Zig 71.1%
  • C 28.9%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-14 23:13:30 +02:00
.github/workflows select Zig version in CI based on build.zig.zon 2025-11-17 19:03:04 +01:00
include update upstream to 2.45.0 2025-08-28 21:50:09 +02:00
.gitattributes initial commit 2025-04-11 05:52:18 +02:00
.gitignore Upgrade to zig 0.16.0 (#1) 2026-04-17 00:27:08 +02:00
build.zig fix support for Zig 0.17.0 2026-10-14 23:13:30 +02:00
build.zig.zon fix support for Zig 0.17.0 2026-10-14 23:13:30 +02:00
COPYING initial commit 2025-04-11 05:52:18 +02:00
COPYING.LIB initial commit 2025-04-11 05:52:18 +02:00
COPYING3 initial commit 2025-04-11 05:52:18 +02:00
COPYING3.LIB initial commit 2025-04-11 05:52:18 +02:00
find_replace.zig fix support for Zig 0.17.0 2026-10-14 23:13:30 +02:00
README.md initial commit 2025-04-11 05:52:18 +02:00

CI

binutils

This is binutils, packaged for Zig.

The following subset of tools and libraries have been ported:

  • bfd - A library for manipulating binary files in a variety of different formats.
  • libsframe - A library for assembling and disassembling a variety of different assembler languages.
  • opcodes - A library for manipulating the SFRAME debug format.

Installation

First, update your build.zig.zon:

# Initialize a `zig build` project if you haven't already
zig init
zig fetch --save git+https://github.com/allyourcodebase/binutils.git

You can then import binutils in your build.zig with:

const binutils_dependency = b.dependency("binutils", .{
    .target = target,
    .optimize = optimize,
});
your_exe.root_module.linkLibrary(binutils_dependency.artifact("binutils"));