STRIP(1) GNU Development Tools STRIP(1) (NAME) strip - (SYNOPSIS) 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....SH " (DESCRIPTION)" GNU strip objfile . . . strip . (OPTIONS) -F bfdname --target=bfdname objfile bfdname . --help strip . --info . -I bfdname --input-target=bfdname objfile bfdname . -O bfdname --output-target=bfdname 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 sectionpattern . --remove-relocations=sectionpattern (relocations) sectionpattern . . . sectionpattern . : --remove-relocations=.text.* '.text.*' . sectionpattern (!) --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 symbolname --keep-symbol=symbolname symbolname . . -M --merge-notes --no-merge-notes ELF ( ) SHT_NOTE . DWO . -N symbolname --strip-symbol=symbolname symbolname . strip -K . -o file file . objfile . -p --preserve-dates . -D --enable-deterministic-archives deterministic . UID GID . binutils --enable-deterministic-archives . -U ..IP -U 4 --disable-deterministic-archives (deterministic) . -D : UID GID (timestamp) (file mode) . binutils --enable-deterministic-archives . -w --wildcard (regular expressions) symbolname . (?) (*) (\) ([]) . (!) . : -w -K !foo -K fo* strip "fo" "foo" . -x --discard-all (non-global). -X --discard-locals . ( L . .) --keep-section-symbols --strip-debug --strip-unneeded (sections) . --keep-file-symbols --strip-debug --strip-unneeded . --only-keep-debug --strip-debug (debugging) . ELF note . - (section headers) . debuginfo (relocate) . --add-gnu-debuglink . RAM . : .< . > "foo" ... .< "objcopy --only-keep-debug foo foo.dbg" > . .< "objcopy --strip-debug foo" > . .< "objcopy --add-gnu-debuglink=foo.dbg foo" > . --- ".dbg" . "--only-keep-debug" . : .< .> .< "foo" "foo.full"> .< "strip --strip-debug foo"> .< "objcopy --add-gnu-debuglink=foo.full foo"> --add-gnu-debuglink . --only-keep-debug . --- (fully linked) . . gnu_debuglink . --plugin name name (target) . . --plugin strip ${libdir}/bfd-plugins . -plugin ld . 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 (whitespace) . . ( ) . file @file ..SH " (SEE ALSO)" Info binutils. (COPYRIGHT) Copyright (c) 1991-2025 Free Software Foundation, Inc. / << >> (GNU Free Documentation License) 1.3 (Free Software Foundation) . <> . binutils-2.45.1 2026-01-23 STRIP(1)