https://github.com/allyourcodebase/binutils
binutils ported to the zig build system
https://github.com/allyourcodebase/binutils
zig zig-package
Last synced: 8 months ago
JSON representation
binutils ported to the zig build system
- Host: GitHub
- URL: https://github.com/allyourcodebase/binutils
- Owner: allyourcodebase
- License: gpl-2.0
- Created: 2025-04-11T03:07:56.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2025-05-20T23:57:19.000Z (9 months ago)
- Last Synced: 2025-07-02T18:58:16.314Z (8 months ago)
- Topics: zig, zig-package
- Language: Zig
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
[](https://github.com/allyourcodebase/binutils/actions)
# binutils
This is [binutils](https://www.gnu.org/software/binutils/), packaged for [Zig](https://ziglang.org/).
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:
```zig
const binutils_dependency = b.dependency("binutils", .{
.target = target,
.optimize = optimize,
});
your_exe.root_module.linkLibrary(binutils_dependency.artifact("binutils"));
```