EMSTRIP(1)
π 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 appropriatesh_linkfields 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 typeSTT_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
- ubuntu stonking: emscripten 6.0.5+dfsg+~1.41.5-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms