CRUNCHIDE(1)
π crunchide β hiding symbol names from ld, bestie edition
okay so real talk, this is a page from the General Commands Manual and it's called crunchide β yes, lowercase, that's its whole name, and it is literally the "hides symbol names from ld, for crunching programs together" tool. iconic behaviour honestly.
β¨ SYNOPSIS β¨
crunchide [-f keep-list-file] [-k keep-symbol] [object-file ...]
that's it. that's the whole vibe check. three little options and some files. slay.
π¦ DESCRIPTION π¦
okay so here's the tea π΅ β crunchide hides the global symbols of object-file so that they get ignored by any linker runs that happen after it, specifically runs of the linker, ld(1). like, it ghosts those symbols. they're still there, they're just not speaking to the linker anymore.
but bestie, some symbols are allowed to stay visible π β you do that with the -k keep-symbol and -f keep-list-file options. the keep-list-file must contain a list of symbols to keep visible, one symbol per line (no cap, one per line, that's the rule π).
lowkey important detail: the names you pass with keep-symbol or put in keep-list-file should be C names. so for example β and this is the example, fr fr β to keep the C function "foo" visible, you'd use the option "-k foo". chill, right?
and the lore? crunchide is designed as a companion program for crunchgen(1), which automates the process of creating crunched binaries from multiple component programs. it's giving supporting-role main character energy π
.
π SEE ALSO π
π AUTHORS π
the crunch utility was written by James da Silva <jds@cs.umd.edu>.
Copyright (c) 1994 University of Maryland. All Rights Reserved.
Chris Demetriou <cgd@netbsd.org> reorganized crunchide so that it supported multiple object formats, and added ELF object support and ECOFF object recognition. multi-format glow-up, we love to see it β¨.
Copyright (c) 1997 Christopher G. Demetriou. All Rights Reserved.
and that's the whole page, bestie β courtesy of Debian, dated June 14, 1994, from CRUNCHIDE(1) π«Ά go hide some symbols, you got this πΰΎΰ½²π¦
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- Copyright (c) 1994 University of Maryland
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms