elfutils ported to the zig build system
  • C 70.9%
  • Zig 29.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-04-17 00:23:39 +02:00
.github/workflows CI: test on latest tagged release of Zig 2026-04-17 00:23:39 +02:00
.gitattributes initial commit 2025-04-28 21:15:45 +02:00
.gitignore upgrade to support zig 0.16.0 2026-04-17 00:21:44 +02:00
build.zig support building for WASI with emulated mman (#2) 2025-10-30 13:54:25 +01:00
build.zig.zon upgrade to support zig 0.16.0 2026-04-17 00:21:44 +02:00
config.h.in initial commit 2025-04-28 21:15:45 +02:00
COPYING initial commit 2025-04-28 21:15:45 +02:00
COPYING-GPLV2 initial commit 2025-04-28 21:15:45 +02:00
COPYING-LGPLV3 initial commit 2025-04-28 21:15:45 +02:00
known-dwarf.h initial commit 2025-04-28 21:15:45 +02:00
README.md initial commit 2025-04-28 21:15:45 +02:00

CI

elfutils

This is elfutils, packaged for Zig.

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/elfutils.git

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

const elfutils_dependency = b.dependency("elfutils", .{
    .target = target,
    .optimize = optimize,
});
const libelf = elfutils_dependency.artifact("elf");
const libdw = elfutils_dependency.artifact("dw");
const libasm = elfutils_dependency.artifact("asm");

your_exe.linkLibrary(libelf);
your_exe.linkLibrary(libdw);
your_exe.linkLibrary(libasm);