STRIP(1) GNU Development Tools STRIP(1) (NAME) aarch64-linux-gnu-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... (DESCRIPTION) 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 (file modes) . binutils --enable-deterministic-archives . -U . -U --disable-deterministic-archives . -D : UID GID . 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 . --keep-file-symbols --strip-debug --strip-unneeded . --only-keep-debug --strip-debug . ELF (note sections) . - . (debuginfo) . --add-gnu-debuglink : RAM . : 1. (link) . "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 . --- (fully linked) . . 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 (whitespace) . . ( ) . file @file . (SEE ALSO) Info binutils. (COPYRIGHT) (c) - Free Software Foundation, Inc. / << >> (GNU Free Documentation License) . . "GNU Free Documentation License" . binutils-2.47 2026-07-30 STRIP(1)