WCC(1)
okay so bestie, say hi to wcc β the Witchcraft Core Compiler, and it is literally living in section 1 of the manual (User Commands). The vibe? Recompiling binary files. The energy? Immaculate. π
π NAME π
wcc β recompile binary files β¨
π SYNOPSIS π
wcc [options] file
π¦ DESCRIPTION π¦
The Witchcraft Core Compiler is part of the Witchcraft Compiler Collection. (yes, the whole collection, and yes it's iconic π«Ά)
The wcc compiler takes binaries (ELF, PE, ...) as an input and creates valid ELF binaries as an output. It can be used to create relocatable object files from executables or shared libraries. π₯
β¨ Options β¨
ngl bestie, the og page just drops these flags with no explanation attached, and I am not about to make stuff up. So here is every single one, exactly as written, no cap. π
-o,--outputβ<output file>π-m,--marchβ<architecture>π¦-e,--entrypointβ<0xaddress>π―-i,--interpreterβ<interpreter>πΈ-p,--poisonβ<poison>π-s,--sharedβ π-c,--compileβ β¨-S,--staticβ π§-x,--stripβ π-X,--sstripβ π«Ά-E,--execβ π₯-C,--coreβ π-O,--originalβ β-D,--disasmβ π-d,--debugβ π-h,--helpβ π-v,--verboseβ π£οΈ-V,--versionβ π
π EXAMPLES π
Step one: unlink era π
wcc -c /bin/ls -o /tmp/ls.o
Unlink the binary /bin/ls into a relocatable object named /tmp/ls.o π
Step two: link it up, slay π₯
gcc /tmp/ls.o -o /tmp/ls.so -shared
Use the gcc compiler to link the previously generated /tmp/ls.o relocatable object into a shared library /tmp/ls.so β¨
π NOTES π
The Witcraft Compiler Collection is a set of reverse engineering tools. (and yes, the og page spells it "Witcraft" β iykyk π)
π AUTHOR π
Written by endrazine (Jonathan Brossard) π«Ά
π REPORTING BUGS π
Witchcraft Compiler Collection online bug tracker: https://github.com/endrazine/wcc/issues π
Β©οΈ COPYRIGHT Β©οΈ
Copyright Jonathan Brossard
License: MIT and BSD Licenses. See https://github.com/endrazine/wcc/blob/master/LICENSE.
π SEE ALSO π
The full documentation of the Witchcraft Compiler Collection is available online at https://github.com/endrazine/wcc/wiki π
and that's the whole page, bestie β Witchcraft Compiler Collection, April 2017, WCC(1). periodt. π
π¦ where this page comes from
- debian trixie: wcc 0.0.7+dfsg-1+b2 Β· MIT
- nixos 26.05: wcc 0.0.11
- nixpkgs unstable: wcc 0.0.11
- ubuntu resolute: wcc 0.0.7+dfsg-2build2 Β· MIT
- ubuntu stonking: wcc 0.0.7+dfsg-2build3 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms