#compiled #segment #append #data #binaries #binary #build

segappend

Append custom data to compiled binaries by creating a new segment

2 unstable releases

0.2.0 Jul 22, 2023
0.1.0 Jul 22, 2023

#122 in macOS and iOS APIs

Apache-2.0

12KB
261 lines

segappend

Append custom data by creating a new segment in compiled binary.

Only supports Mach-O 64-bit binaries for now (macOS, iOS, etc).

Usage

While it is primarily meant to be used as a C library, a simple utility tool is also compiled along with the library. See include/segappend.h for the C API.

There are also Rust bindings published on crates.io: segappend.

Build

# build library and utility tool
deno task build

# utility tool
deno task run <input-file> <segment-name> <segment-data-file> <output-file>

License

Apache-2.0 License

Copyright (c) 2023, DjDeveloperr

No runtime deps

~0–280KB