EMSTRIP(1)

πŸ“¦
version 6.0.5 Β· 3 versions
, in ubuntu stonking

πŸ’… emstrip(1) β€” bestie's guide to llvm-strip energy

okay so, hi. welcome to emstrip, the emscripten wrapper around llvm-strip. this manual is from the User Commands girlies, and she's serving stripping binaries, no cap. πŸŽ€βœ¨


✨ NAME ✨

emstrip β€” the emscripten wrapper around llvm-strip πŸ¦‹

🌸 DESCRIPTION 🌸

Here's the whole vibe, straight up:

OVERVIEW: llvm-strip tool

USAGE: llvm-strip [options] inputs...

like… that's it. that's the whole tool. now let's get into the options because there are so many and honestly she ate. πŸ”₯


πŸ‘‘ OPTIONS πŸ‘‘

  • --allow-broken-links β€” lets the tool go ahead and remove sections even when doing that would leave invalid section references behind (messy of her, but okay). when that happens, the appropriate sh_link fields get set to zero. problem solved, sorta. πŸ’…
  • --disable-deterministic-archives β€” turns deterministic mode OFF when you're operating on archives, so it uses real values for UIDs, GIDs, and timestamps. πŸ•°οΈ
  • --discard-all β€” removes most local symbols. different file formats may limit this to a subset though β€” for ELF, file and section symbols are not discarded. AND on top of that, it removes all debug sections too. double homicide. πŸ’€
  • --discard-locals β€” removes local symbols starting with .L
  • -D β€” alias for --enable-deterministic-archives
  • -d β€” alias for --strip-debug
  • --enable-deterministic-archives β€” turns deterministic mode ON when operating on archives, using zero for UIDs, GIDs, and timestamps. ✨
  • -g β€” alias for --strip-debug
  • --keep-file-symbols β€” keeps symbols of type STT_FILE, even if they would otherwise be stripped. protective queen. 🫢
  • --keep-section=section β€” keep <section>
  • --keep-symbol=symbol β€” when removing symbols, do not remove <symbol>
  • -K <value> β€” alias for --keep-symbol
  • --no-strip-all β€” disables --strip-all
  • -N <value> β€” alias for --strip-symbol
  • --only-keep-debug β€” produces a debug file as the output that only preserves contents of sections useful for debugging purposes
  • -o <file> β€” write output to <file>
  • --preserve-dates β€” preserves access and modification timestamps
  • -p β€” alias for --preserve-dates
  • --regex β€” permits regular expressions in name comparison
  • --remove-section=section β€” remove <section>
  • -R <value> β€” alias for --remove-section
  • --strip-all-gnu β€” removes all symbols, debug sections and relocations. compatible with GNU's --strip-all 😌
  • --strip-all β€” for ELF, removes all symbols and non-alloc sections not within segments, EXCEPT for .gnu.warning*, .ARM.attribute, and the section name table. for COFF and Mach-O, removes all symbols, debug sections, and relocations
  • --strip-debug β€” removes all debug sections
  • --strip-sections β€” removes all section headers and all section data not within segments
  • --strip-symbol=symbol β€” strip <symbol>
  • --strip-unneeded β€” removes all symbols not needed by relocations
  • -S β€” alias for --strip-debug
  • -s β€” alias for --strip-all
  • -T β€” removes Swift symbols
  • -U β€” alias for --disable-deterministic-archives
  • --version β€” prints the version and exits.
  • -V β€” alias for --version
  • --wildcard β€” allows wildcard syntax for symbol-related flags. incompatible with --regex, fyi. lets you use * to match any number of characters, ? to match any single character, '' to escape special characters, and [] to define character classes. wildcards beginning with ! will prevent a match β€” for example "-N '*' -N '!x'" will strip all symbols except for "x". iconic behaviour tbh. 🧚
  • -w β€” alias for --wildcard
  • -X β€” alias for --discard-locals
  • -x β€” alias for --discard-all

🍎 OPTIONS (Mach-O specific) 🍎

just the apple girlies, don't worry about it:

  • --keep-undefined β€” do not remove undefined symbols

psst β€” pass @FILE as argument to read options from FILE. sneaky and efficient, love that for you. πŸ“„πŸ’œ

and that's the whole page, bestie!! rip it, strip it, slay it. πŸ’…πŸŒˆ

emstrip 6.0.5+dfsg+~1.41.5 β€” August 2026 β€” mwah, see u next manual πŸŽ€πŸ’–βœ¨

πŸ“¦ where this page comes from