STRIP(1) STRIP(1) strip - strip [-F bfdname |--target=bfdname] [-I bfdname |--input-target=bfdname] [-O bfdname |--output-target=bfdname] [-s|--strip-all] [-S|-g|-d|--strip-debug] [--strip-dwo] [-K symbolname|--keep-symbol=symbolname] [-M|--merge-notes][--no-merge-notes] [-N symbolname |--strip-symbol=symbolname] [-w|--wildcard] [-x|--discard-all] [-X |--discard-locals] [-R sectionname |--remove-section=sectionname] [--keep-section=sectionpattern] [--remove-relocations=sectionpattern] [--strip-section-headers] [-o file] [-p|--preserve-dates] [-D|--enable-deterministic-archives] [-U|--disable-deterministic-archives] [--keep-section-symbols] [--keep-file-symbols] [--only-keep-debug] [--plugin name] [-v |--verbose] [-V|--version] [--help] [--info] objfile... GNU strip objfile. . . strip . -F _bfd --target=_bfd objfile bfdname . --help strip . --info . -I _bfd --input-target=-bfd objfile bfdname. -O _bfd --output-target=_bfd objfile bfdname. -R sectionname --remove-section=sectionname sectionname . . . * sectionname. sectionname. sectionpattern (!) --remove-section . : --remove-section=.text.* --remove-section=!.text.foo '.text.*' '.text.foo'. --keep-section=- sectionpattern. --remove-relocations=_ sectionpattern. . . sectionpattern. : --remove-relocations=.text.* '.text.*'. sectionpattern (!) (relocation) --remove-relocations . : --remove-relocations=.text.* --remove-relocations=!.text.foo '.text.*' '.text.foo'. --strip-section-headers . ELF. --strip-all --merge-notes. -s --strip-all . -g -S -d --strip-debug . --strip-dwo DWARF .dwo . objcopy . --strip-unneeded --strip-debug. -K _ --keep-symbol=- symbolname . . -M --merge-notes --no-merge-notes ELF ( ) SHT_NOTE . DWO. -N _ --strip-symbol=_ symbolname . strip -K. -o file file . objfile . -p --preserve-dates . -D --enable-deterministic-archives (deterministic). UIDs GIDs . binutils --enable-deterministic-archives . -U . -U --disable-deterministic-archives . -D : UID GID . binutils --enable-deterministic-archives. -w --wildcard symbolnames . (?) (*) (\) ([]) . (!) . : -w -K !foo -K fo* strip "fo" "foo". -x --discard-all . -X --discard-locals . ( L ..) --keep-section-symbols --strip-debug --strip-unneeded . --keep-file-symbols --strip-debug --strip-unneeded . --only-keep-debug --strip-debug . ELF . - . . --add-gnu-debuglink . . : 1. . "foo" ... 2. "objcopy --only-keep-debug foo foo.dbg" . 3. "strip --strip-debug foo" . 4. "objcopy --add-gnu-debuglink=foo.dbg foo" . --- ".dbg" . "--only-keep-debug" . : 1. . 2. "foo" "foo.full". 3. "strip --strip-debug foo". 4. "objcopy --add-gnu-debuglink=foo.full foo". --add-gnu-debuglink . --only-keep-debug. --- . . gnu_debuglink . --plugin name . (toolchain) . --plugin strip ${libdir}/bfd-plugins . ld's -plugin. strip ${libdir}/bfd-plugins. GCC liblto_plugin.so.0.0.0. Clang LLVMgold.so. GCC . -V --version strip. -v --verbose : . strip -v . @ file. @file . file . file . . ( ) . file @file (recursively). Info binutils. (c) 1991-2026 . / (GNU Free Documentation License) 1.3 . "GNU Free Documentation License". 3 . . : . binutils-2.46.0 1 2026 STRIP(1)