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 (section headers) . ELF . --strip-all --merge-notes . -s --strip-all . -g -S -d --strip-debug (debugging symbols) . --strip-dwo dwo. DWARF . 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 . -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 . -D : UID GID . binutils --enable-deterministic-archives . -w --wildcard symbolname . (?) (*) (\) ([]) . (!) . : -w -K !foo -K fo* strip <> <> . -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 . ELF note . - . debuginfo (relocate) . --add-gnu-debuglink : RAM . : 1.< . > "foo" ... 1.< "objcopy --only-keep-debug foo foo.dbg" > . 1.< "objcopy --strip-debug foo" > . 1.< "objcopy --add-gnu-debuglink=foo.dbg foo"> . --- ".dbg" . "--only-keep-debug" . : 1.< .> 1.< "foo" "foo.full"> 1.< "strip --strip-debug foo"> 1.< "objcopy --add-gnu-debuglink=foo.full foo"> --add-gnu-debuglink --only-keep-debug . --- . . gnu_debuglink . --plugin name name . . --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 . . ( ) . file @file ..SH " (SEE ALSO)" Info binutils. (COPYRIGHT) Copyright (c) 1991-2025 Free Software Foundation, Inc. / << >> (GNU Free Documentation License) . (Free Software Foundation) . <> . binutils-2.45.1 2026-01-23 STRIP(1)