wcc(1)

wcc1

Recompile binary files

Usage

wcc [options] file

Overview

The Witchcraft Core Compiler is part of the Witchcraft Compiler Collection.

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:

-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

wcc -c /bin/ls -o /tmp/ls.o

Unlink the binary /bin/ls into a relocatable object named /tmp/ls.o

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.

Releases

4 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10–12
  2. 13

Author

Written by endrazine (Jonathan Brossard)

Reporting bugs

Witchcraft Compiler Collection online bug tracker: <https://github.com/endrazine/wcc/issues>

From wcc 0.0.7+dfsg-1+b2 in Debian 13 (Trixie). Parsed by carta from the page's man source.