Stripping binaries

The only case where strip should not be used is for bytecode executables produced by ocamlc in -custom mode. Tehse are hybrid files composed of an ELF executable followed by OCaml bytecode, which confuses the strip command. But -custom mode is rarely used nowadays.

If your executable is produced by ocamlopt, nothing bad will happen if you run strip on it.

6 Likes