statifier(1)

πŸ“¦ version 1.7.4, in nixos 26.05, nixpkgs unstable

statifier(1) πŸ’…βœ¨ Elf Statifier vibes

🌸 NAME 🌸

okay so statifier is literally the Elf dynamically linked executables statifier β€” the Elf Statifier manual, bestie. It takes an ELF dynamically linked executable and all its required libraries and turns them into one stand-alone executable. That executable can be copied to another machine without any of these shared libraries and run. it’s giving portability πŸ‘‘βœ¨

πŸ¦‹ SYNOPSIS πŸ¦‹

statifier [OPTION]... <exe_file> <statified_exe>

πŸ’– DESCRIPTION πŸ’–

Statifier makes one stand-alone executable from an ELF dynamically linked executable and all its required libraries. This executable can be copied to another machine without any of these shared libraries and run. no cap, that’s the whole glow-up 🫢

✨ OPTIONS ✨

  • -h, --help β€” display this help and exit. polite icon behavior πŸ’…
  • -k, --keep-working-directory β€” Do not remove working directory. Also change it from $TMPDIR/statifier.tmpdir.$$ to ./.statifier.
  • -s, --set=VAR=VALUE β€” Set environment variable VAR to value VALUE. Multiple set options accepted. stack ’em, bestie πŸ“
  • -u, --unset=VAR β€” Unset environment variable VAR. Multiple unset options accepted.
  • -v, --verbose β€” verbose output. give me all the tea πŸ”₯
  • -V, --version β€” output version and exit.

πŸŽ€ FILES πŸŽ€

  • $TMPDIR/statifier.tmpdir.$$ β€” Directory which contains all temporary files.

🌈 ENVIRONMENT VARIABLES 🌈

  • TMPDIR β€” Directory for temporary files. If not set /tmp/ used.

πŸ“ EXAMPLES πŸ“

πŸ’« Example 1: pretty trivial

statifier /bin/df df.static

Pretty trivial. Convert /bin/df to df.static.

πŸ’« Example 2: something more interesting

statifier --set=LD_BIND_NOW=yes /bin/df df.static

Something more interesting. Dynamic linker will resolve all symbols. So statifing will take longer, but resulting exe will have faster startup. highkey worth it ✨

statifier --set=LD_PRELOAD=/some/library/to/by/preloaded /bin/df
df.static

Will β€œlink” /bin/df with preloaded library.

πŸ’œ NOTE πŸ’œ

Environment variables are described in the run-time loader’s man page. go check the lore 🫢

🌸 LIMITATIONS 🌸

Currently it works only on Linux x86, x86_64 and Alpha.

⭐ SEE ALSO ⭐

πŸ‘‘ AUTHORS πŸ‘‘

  • Valery Reznic <valery_reznic@users.sourceforge.net> πŸ’–

that’s the whole page, bestie 🫢 source/version vibes: Elf Statifier manual, version 1.7.4, author Valery Reznic, manual name statifier(1). The footer has no date listed β€” so no fake date, just the version and the name. bye πŸ’…βœ¨

πŸ“¦ where this page comes from