{
    "content": [
        {
            "type": "text",
            "text": "# strip(1) (man)\n\n**Summary:** strip - discard symbols and other data from object files\n\n**Synopsis:** strip [-F bfdname |--target=bfdname]\n[-I bfdname |--input-target=bfdname]\n[-O bfdname |--output-target=bfdname]\n[-s|--strip-all]\n[-S|-g|-d|--strip-debug]\n[--strip-dwo]\n[-K symbolname|--keep-symbol=symbolname]\n[-M|--merge-notes][--no-merge-notes]\n[-N symbolname |--strip-symbol=symbolname]\n[-w|--wildcard]\n[-x|--discard-all] [-X |--discard-locals]\n[-R sectionname |--remove-section=sectionname]\n[--keep-section=sectionpattern]\n[--remove-relocations=sectionpattern]\n[-o file] [-p|--preserve-dates]\n[-D|--enable-deterministic-archives]\n[-U|--disable-deterministic-archives]\n[--keep-section-symbols]\n[--keep-file-symbols]\n[--only-keep-debug]\n[-v |--verbose] [-V|--version]\n[--help] [--info]\nobjfile...\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| -F | — | — | --target=bfdname Treat the original objfile as a file with the object code format bfdname, and rewrite it in the same fo |\n| — | --help | — | Show a summary of the options to strip and exit. |\n| — | --info | — | Display a list showing all architectures and object formats available. |\n| -I | — | — | --input-target=bfdname Treat the original objfile as a file with the object code format bfdname. |\n| -O | — | — | --output-target=bfdname Replace objfile with a file in the output format bfdname. |\n| -R | — | — | --remove-section=sectionname Remove any section named sectionname from the output file, in addition to whatever sections |\n| -s | — | — |  |\n| — | --strip-all | — | Remove all symbols. |\n| -g | — | — |  |\n| -S | — | — |  |\n| -d | — | — |  |\n| — | --strip-debug | — | Remove debugging symbols only. |\n| — | --strip-dwo | — | Remove the contents of all DWARF .dwo sections, leaving the remaining debugging sections and all symbols intact. See the |\n| — | --strip-unneeded | — | Remove all symbols that are not needed for relocation processing in addition to debugging symbols and sections stripped  |\n| -K | — | — | --keep-symbol=symbolname When stripping symbols, keep symbol symbolname even if it would normally be stripped. This opti |\n| -M | — | — |  |\n| — | --merge-notes | — |  |\n| — | --no-merge-notes | — | For ELF files, attempt (or do not attempt) to reduce the size of any SHTNOTE type sections by removing duplicate notes.  |\n| -N | — | — | --strip-symbol=symbolname Remove symbol symbolname from the source file. This option may be given more than once, and ma |\n| -o | — | — | Put the stripped output in file, rather than replacing the existing file. When this argument is used, only one objfile a |\n| -p | — | — |  |\n| — | --preserve-dates | — | Preserve the access and modification dates of the file. |\n| -D | — | — |  |\n| — | --enable-deterministic-archives | — | Operate in deterministic mode. When copying archive members and writing the archive index, use zero for UIDs, GIDs, time |\n| -U | — | — |  |\n| — | --disable-deterministic-archives | — | Do not operate in deterministic mode. This is the inverse of the -D option, above: when copying archive members and writ |\n| -w | — | — |  |\n| — | --wildcard | — | Permit regular expressions in symbolnames used in other command line options. The question mark (?), asterisk (*), backs |\n| -x | — | — |  |\n| — | --discard-all | — | Remove non-global symbols. |\n| -X | — | — |  |\n| — | --discard-locals | — | Remove compiler-generated local symbols. (These usually start with L or ..) |\n| — | --keep-section-symbols | — | When stripping a file, perhaps with --strip-debug or --strip-unneeded, retain any symbols specifying section names, whic |\n| — | --keep-file-symbols | — | When stripping a file, perhaps with --strip-debug or --strip-unneeded, retain any symbols specifying source file names,  |\n| — | --only-keep-debug | — | Strip a file, emptying the contents of any sections that would not be stripped by --strip-debug and leaving the debuggin |\n| -V | — | — |  |\n| — | --version | — | Show the version number for strip. |\n| -v | — | — |  |\n| — | --verbose | — | Verbose output: list all object files modified. In the case of archives, strip -v lists all members of the archive. @fil |\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (24 lines)\n- **DESCRIPTION** (6 lines)\n- **OPTIONS** (1 lines) — 39 subsections\n  - -F (4 lines)\n  - --help (2 lines)\n  - --info (2 lines)\n  - -I (3 lines)\n  - -O (3 lines)\n  - -R (39 lines)\n  - -s (1 lines)\n  - --strip-all (2 lines)\n  - -g (1 lines)\n  - -S (1 lines)\n  - -d (1 lines)\n  - --strip-debug (2 lines)\n  - --strip-dwo (4 lines)\n  - --strip-unneeded (3 lines)\n  - -K (4 lines)\n  - -M (1 lines)\n  - --merge-notes (1 lines)\n  - --no-merge-notes (4 lines)\n  - -N (4 lines)\n  - -o (3 lines)\n  - -p (1 lines)\n  - --preserve-dates (2 lines)\n  - -D (1 lines)\n  - --enable-deterministic-archives (6 lines)\n  - -U (1 lines)\n  - --disable-deterministic-archives (6 lines)\n  - -w (1 lines)\n  - --wildcard (11 lines)\n  - -x (1 lines)\n  - --discard-all (2 lines)\n  - -X (1 lines)\n  - --discard-locals (2 lines)\n  - --keep-section-symbols (3 lines)\n  - --keep-file-symbols (3 lines)\n  - --only-keep-debug (43 lines)\n  - -V (1 lines)\n  - --version (2 lines)\n  - -v (1 lines)\n  - --verbose (14 lines)\n- **SEE ALSO** (2 lines)\n- **COPYRIGHT** (11 lines)\n\n## Full Content\n\n### NAME\n\nstrip - discard symbols and other data from object files\n\n### SYNOPSIS\n\nstrip [-F bfdname |--target=bfdname]\n[-I bfdname |--input-target=bfdname]\n[-O bfdname |--output-target=bfdname]\n[-s|--strip-all]\n[-S|-g|-d|--strip-debug]\n[--strip-dwo]\n[-K symbolname|--keep-symbol=symbolname]\n[-M|--merge-notes][--no-merge-notes]\n[-N symbolname |--strip-symbol=symbolname]\n[-w|--wildcard]\n[-x|--discard-all] [-X |--discard-locals]\n[-R sectionname |--remove-section=sectionname]\n[--keep-section=sectionpattern]\n[--remove-relocations=sectionpattern]\n[-o file] [-p|--preserve-dates]\n[-D|--enable-deterministic-archives]\n[-U|--disable-deterministic-archives]\n[--keep-section-symbols]\n[--keep-file-symbols]\n[--only-keep-debug]\n[-v |--verbose] [-V|--version]\n[--help] [--info]\nobjfile...\n\n### DESCRIPTION\n\nGNU strip discards all symbols from object files objfile.  The list of object files may\ninclude archives.  At least one object file must be given.\n\nstrip modifies the files named in its argument, rather than writing modified copies under\ndifferent names.\n\n### OPTIONS\n\n#### -F\n\n--target=bfdname\nTreat the original objfile as a file with the object code format bfdname, and rewrite it\nin the same format.\n\n#### --help\n\nShow a summary of the options to strip and exit.\n\n#### --info\n\nDisplay a list showing all architectures and object formats available.\n\n#### -I\n\n--input-target=bfdname\nTreat the original objfile as a file with the object code format bfdname.\n\n#### -O\n\n--output-target=bfdname\nReplace objfile with a file in the output format bfdname.\n\n#### -R\n\n--remove-section=sectionname\nRemove any section named sectionname from the output file, in addition to whatever\nsections would otherwise be removed.  This option may be given more than once.  Note that\nusing this option inappropriately may make the output file unusable.  The wildcard\ncharacter * may be given at the end of sectionname.  If so, then any section starting\nwith sectionname will be removed.\n\nIf the first character of sectionpattern is the exclamation point (!) then matching\nsections will not be removed even if an earlier use of --remove-section on the same\ncommand line would otherwise remove it.  For example:\n\n--remove-section=.text.* --remove-section=!.text.foo\n\nwill remove all sections matching the pattern '.text.*', but will not remove the section\n'.text.foo'.\n\n--keep-section=sectionpattern\nWhen removing sections from the output file, keep sections that match sectionpattern.\n\n--remove-relocations=sectionpattern\nRemove relocations from the output file for any section matching sectionpattern.  This\noption may be given more than once.  Note that using this option inappropriately may make\nthe output file unusable.  Wildcard characters are accepted in sectionpattern.  For\nexample:\n\n--remove-relocations=.text.*\n\nwill remove the relocations for all sections matching the patter '.text.*'.\n\nIf the first character of sectionpattern is the exclamation point (!) then matching\nsections will not have their relocation removed even if an earlier use of\n--remove-relocations on the same command line would otherwise cause the relocations to be\nremoved.  For example:\n\n--remove-relocations=.text.* --remove-relocations=!.text.foo\n\nwill remove all relocations for sections matching the pattern '.text.*', but will not\nremove relocations for the section '.text.foo'.\n\n#### -s\n\n#### --strip-all\n\nRemove all symbols.\n\n#### -g\n\n#### -S\n\n#### -d\n\n#### --strip-debug\n\nRemove debugging symbols only.\n\n#### --strip-dwo\n\nRemove the contents of all DWARF .dwo sections, leaving the remaining debugging sections\nand all symbols intact.  See the description of this option in the objcopy section for\nmore information.\n\n#### --strip-unneeded\n\nRemove all symbols that are not needed for relocation processing in addition to debugging\nsymbols and sections stripped by --strip-debug.\n\n#### -K\n\n--keep-symbol=symbolname\nWhen stripping symbols, keep symbol symbolname even if it would normally be stripped.\nThis option may be given more than once.\n\n#### -M\n\n#### --merge-notes\n\n#### --no-merge-notes\n\nFor ELF files, attempt (or do not attempt) to reduce the size of any SHTNOTE type\nsections by removing duplicate notes.  The default is to attempt this reduction unless\nstripping debug or DWO information.\n\n#### -N\n\n--strip-symbol=symbolname\nRemove symbol symbolname from the source file. This option may be given more than once,\nand may be combined with strip options other than -K.\n\n#### -o\n\nPut the stripped output in file, rather than replacing the existing file.  When this\nargument is used, only one objfile argument may be specified.\n\n#### -p\n\n#### --preserve-dates\n\nPreserve the access and modification dates of the file.\n\n#### -D\n\n#### --enable-deterministic-archives\n\nOperate in deterministic mode.  When copying archive members and writing the archive\nindex, use zero for UIDs, GIDs, timestamps, and use consistent file modes for all files.\n\nIf binutils was configured with --enable-deterministic-archives, then this mode is on by\ndefault.  It can be disabled with the -U option, below.\n\n#### -U\n\n#### --disable-deterministic-archives\n\nDo not operate in deterministic mode.  This is the inverse of the -D option, above: when\ncopying archive members and writing the archive index, use their actual UID, GID,\ntimestamp, and file mode values.\n\nThis is the default unless binutils was configured with --enable-deterministic-archives.\n\n#### -w\n\n#### --wildcard\n\nPermit regular expressions in symbolnames used in other command line options.  The\nquestion mark (?), asterisk (*), backslash (\\) and square brackets ([]) operators can be\nused anywhere in the symbol name.  If the first character of the symbol name is the\nexclamation point (!) then the sense of the switch is reversed for that symbol.  For\nexample:\n\n-w -K !foo -K fo*\n\nwould cause strip to only keep symbols that start with the letters \"fo\", but to discard\nthe symbol \"foo\".\n\n#### -x\n\n#### --discard-all\n\nRemove non-global symbols.\n\n#### -X\n\n#### --discard-locals\n\nRemove compiler-generated local symbols.  (These usually start with L or ..)\n\n#### --keep-section-symbols\n\nWhen stripping a file, perhaps with --strip-debug or --strip-unneeded, retain any symbols\nspecifying section names, which would otherwise get stripped.\n\n#### --keep-file-symbols\n\nWhen stripping a file, perhaps with --strip-debug or --strip-unneeded, retain any symbols\nspecifying source file names, which would otherwise get stripped.\n\n#### --only-keep-debug\n\nStrip a file, emptying the contents of any sections that would not be stripped by\n--strip-debug and leaving the debugging sections intact.  In ELF files, this preserves\nall the note sections in the output as well.\n\nNote - the section headers of the stripped sections are preserved, including their sizes,\nbut the contents of the section are discarded.  The section headers are preserved so that\nother tools can match up the debuginfo file with the real executable, even if that\nexecutable has been relocated to a different address space.\n\nThe intention is that this option will be used in conjunction with --add-gnu-debuglink to\ncreate a two part executable.  One a stripped binary which will occupy less space in RAM\nand in a distribution and the second a debugging information file which is only needed if\ndebugging abilities are required.  The suggested procedure to create these files is as\nfollows:\n\n1.<Link the executable as normal.  Assuming that it is called>\n\"foo\" then...\n\n1.<Run \"objcopy --only-keep-debug foo foo.dbg\" to>\ncreate a file containing the debugging info.\n\n1.<Run \"objcopy --strip-debug foo\" to create a>\nstripped executable.\n\n1.<Run \"objcopy --add-gnu-debuglink=foo.dbg foo\">\nto add a link to the debugging info into the stripped executable.\n\nNote---the choice of \".dbg\" as an extension for the debug info file is arbitrary.  Also\nthe \"--only-keep-debug\" step is optional.  You could instead do this:\n\n1.<Link the executable as normal.>\n1.<Copy \"foo\" to \"foo.full\">\n1.<Run \"strip --strip-debug foo\">\n1.<Run \"objcopy --add-gnu-debuglink=foo.full foo\">\n\ni.e., the file pointed to by the --add-gnu-debuglink can be the full executable.  It does\nnot have to be a file created by the --only-keep-debug switch.\n\nNote---this switch is only intended for use on fully linked files.  It does not make\nsense to use it on object files where the debugging information may be incomplete.\nBesides the gnudebuglink feature currently only supports the presence of one filename\ncontaining debugging information, not multiple filenames on a one-per-object-file basis.\n\n#### -V\n\n#### --version\n\nShow the version number for strip.\n\n#### -v\n\n#### --verbose\n\nVerbose output: list all object files modified.  In the case of archives, strip -v lists\nall members of the archive.\n\n@file\nRead command-line options from file.  The options read are inserted in place of the\noriginal @file option.  If file does not exist, or cannot be read, then the option will\nbe treated literally, and not removed.\n\nOptions in file are separated by whitespace.  A whitespace character may be included in\nan option by surrounding the entire option in either single or double quotes.  Any\ncharacter (including a backslash) may be included by prefixing the character to be\nincluded with a backslash.  The file may itself contain additional @file options; any\nsuch options will be processed recursively.\n\n### SEE ALSO\n\nthe Info entries for binutils.\n\n### COPYRIGHT\n\nCopyright (c) 1991-2022 Free Software Foundation, Inc.\n\nPermission is granted to copy, distribute and/or modify this document under the terms of the\nGNU Free Documentation License, Version 1.3 or any later version published by the Free\nSoftware Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-\nCover Texts.  A copy of the license is included in the section entitled \"GNU Free\nDocumentation License\".\n\n\n\nbinutils-2.38                                2025-12-03                                     STRIP(1)\n\n"
        }
    ],
    "structuredContent": {
        "command": "strip",
        "section": "1",
        "mode": "man",
        "summary": "strip - discard symbols and other data from object files",
        "synopsis": "strip [-F bfdname |--target=bfdname]\n[-I bfdname |--input-target=bfdname]\n[-O bfdname |--output-target=bfdname]\n[-s|--strip-all]\n[-S|-g|-d|--strip-debug]\n[--strip-dwo]\n[-K symbolname|--keep-symbol=symbolname]\n[-M|--merge-notes][--no-merge-notes]\n[-N symbolname |--strip-symbol=symbolname]\n[-w|--wildcard]\n[-x|--discard-all] [-X |--discard-locals]\n[-R sectionname |--remove-section=sectionname]\n[--keep-section=sectionpattern]\n[--remove-relocations=sectionpattern]\n[-o file] [-p|--preserve-dates]\n[-D|--enable-deterministic-archives]\n[-U|--disable-deterministic-archives]\n[--keep-section-symbols]\n[--keep-file-symbols]\n[--only-keep-debug]\n[-v |--verbose] [-V|--version]\n[--help] [--info]\nobjfile...",
        "flags": [
            {
                "flag": "-F",
                "long": null,
                "arg": null,
                "description": "--target=bfdname Treat the original objfile as a file with the object code format bfdname, and rewrite it in the same format."
            },
            {
                "flag": "",
                "long": "--help",
                "arg": null,
                "description": "Show a summary of the options to strip and exit."
            },
            {
                "flag": "",
                "long": "--info",
                "arg": null,
                "description": "Display a list showing all architectures and object formats available."
            },
            {
                "flag": "-I",
                "long": null,
                "arg": null,
                "description": "--input-target=bfdname Treat the original objfile as a file with the object code format bfdname."
            },
            {
                "flag": "-O",
                "long": null,
                "arg": null,
                "description": "--output-target=bfdname Replace objfile with a file in the output format bfdname."
            },
            {
                "flag": "-R",
                "long": null,
                "arg": null,
                "description": "--remove-section=sectionname Remove any section named sectionname from the output file, in addition to whatever sections would otherwise be removed. This option may be given more than once. Note that using this option inappropriately may make the output file unusable. The wildcard character * may be given at the end of sectionname. If so, then any section starting with sectionname will be removed. If the first character of sectionpattern is the exclamation point (!) then matching sections will not be removed even if an earlier use of --remove-section on the same command line would otherwise remove it. For example: --remove-section=.text.* --remove-section=!.text.foo will remove all sections matching the pattern '.text.*', but will not remove the section '.text.foo'. --keep-section=sectionpattern When removing sections from the output file, keep sections that match sectionpattern. --remove-relocations=sectionpattern Remove relocations from the output file for any section matching sectionpattern. This option may be given more than once. Note that using this option inappropriately may make the output file unusable. Wildcard characters are accepted in sectionpattern. For example: --remove-relocations=.text.* will remove the relocations for all sections matching the patter '.text.*'. If the first character of sectionpattern is the exclamation point (!) then matching sections will not have their relocation removed even if an earlier use of --remove-relocations on the same command line would otherwise cause the relocations to be removed. For example: --remove-relocations=.text.* --remove-relocations=!.text.foo will remove all relocations for sections matching the pattern '.text.*', but will not remove relocations for the section '.text.foo'."
            },
            {
                "flag": "-s",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--strip-all",
                "arg": null,
                "description": "Remove all symbols."
            },
            {
                "flag": "-g",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-S",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "-d",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--strip-debug",
                "arg": null,
                "description": "Remove debugging symbols only."
            },
            {
                "flag": "",
                "long": "--strip-dwo",
                "arg": null,
                "description": "Remove the contents of all DWARF .dwo sections, leaving the remaining debugging sections and all symbols intact. See the description of this option in the objcopy section for more information."
            },
            {
                "flag": "",
                "long": "--strip-unneeded",
                "arg": null,
                "description": "Remove all symbols that are not needed for relocation processing in addition to debugging symbols and sections stripped by --strip-debug."
            },
            {
                "flag": "-K",
                "long": null,
                "arg": null,
                "description": "--keep-symbol=symbolname When stripping symbols, keep symbol symbolname even if it would normally be stripped. This option may be given more than once."
            },
            {
                "flag": "-M",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--merge-notes",
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--no-merge-notes",
                "arg": null,
                "description": "For ELF files, attempt (or do not attempt) to reduce the size of any SHTNOTE type sections by removing duplicate notes. The default is to attempt this reduction unless stripping debug or DWO information."
            },
            {
                "flag": "-N",
                "long": null,
                "arg": null,
                "description": "--strip-symbol=symbolname Remove symbol symbolname from the source file. This option may be given more than once, and may be combined with strip options other than -K."
            },
            {
                "flag": "-o",
                "long": null,
                "arg": null,
                "description": "Put the stripped output in file, rather than replacing the existing file. When this argument is used, only one objfile argument may be specified."
            },
            {
                "flag": "-p",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--preserve-dates",
                "arg": null,
                "description": "Preserve the access and modification dates of the file."
            },
            {
                "flag": "-D",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--enable-deterministic-archives",
                "arg": null,
                "description": "Operate in deterministic mode. When copying archive members and writing the archive index, use zero for UIDs, GIDs, timestamps, and use consistent file modes for all files. If binutils was configured with --enable-deterministic-archives, then this mode is on by default. It can be disabled with the -U option, below."
            },
            {
                "flag": "-U",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--disable-deterministic-archives",
                "arg": null,
                "description": "Do not operate in deterministic mode. This is the inverse of the -D option, above: when copying archive members and writing the archive index, use their actual UID, GID, timestamp, and file mode values. This is the default unless binutils was configured with --enable-deterministic-archives."
            },
            {
                "flag": "-w",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--wildcard",
                "arg": null,
                "description": "Permit regular expressions in symbolnames used in other command line options. The question mark (?), asterisk (*), backslash (\\) and square brackets ([]) operators can be used anywhere in the symbol name. If the first character of the symbol name is the exclamation point (!) then the sense of the switch is reversed for that symbol. For example: -w -K !foo -K fo* would cause strip to only keep symbols that start with the letters \"fo\", but to discard the symbol \"foo\"."
            },
            {
                "flag": "-x",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--discard-all",
                "arg": null,
                "description": "Remove non-global symbols."
            },
            {
                "flag": "-X",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--discard-locals",
                "arg": null,
                "description": "Remove compiler-generated local symbols. (These usually start with L or ..)"
            },
            {
                "flag": "",
                "long": "--keep-section-symbols",
                "arg": null,
                "description": "When stripping a file, perhaps with --strip-debug or --strip-unneeded, retain any symbols specifying section names, which would otherwise get stripped."
            },
            {
                "flag": "",
                "long": "--keep-file-symbols",
                "arg": null,
                "description": "When stripping a file, perhaps with --strip-debug or --strip-unneeded, retain any symbols specifying source file names, which would otherwise get stripped."
            },
            {
                "flag": "",
                "long": "--only-keep-debug",
                "arg": null,
                "description": "Strip a file, emptying the contents of any sections that would not be stripped by --strip-debug and leaving the debugging sections intact. In ELF files, this preserves all the note sections in the output as well. Note - the section headers of the stripped sections are preserved, including their sizes, but the contents of the section are discarded. The section headers are preserved so that other tools can match up the debuginfo file with the real executable, even if that executable has been relocated to a different address space. The intention is that this option will be used in conjunction with --add-gnu-debuglink to create a two part executable. One a stripped binary which will occupy less space in RAM and in a distribution and the second a debugging information file which is only needed if debugging abilities are required. The suggested procedure to create these files is as follows: 1.<Link the executable as normal. Assuming that it is called> \"foo\" then... 1.<Run \"objcopy --only-keep-debug foo foo.dbg\" to> create a file containing the debugging info. 1.<Run \"objcopy --strip-debug foo\" to create a> stripped executable. 1.<Run \"objcopy --add-gnu-debuglink=foo.dbg foo\"> to add a link to the debugging info into the stripped executable. Note---the choice of \".dbg\" as an extension for the debug info file is arbitrary. Also the \"--only-keep-debug\" step is optional. You could instead do this: 1.<Link the executable as normal.> 1.<Copy \"foo\" to \"foo.full\"> 1.<Run \"strip --strip-debug foo\"> 1.<Run \"objcopy --add-gnu-debuglink=foo.full foo\"> i.e., the file pointed to by the --add-gnu-debuglink can be the full executable. It does not have to be a file created by the --only-keep-debug switch. Note---this switch is only intended for use on fully linked files. It does not make sense to use it on object files where the debugging information may be incomplete. Besides the gnudebuglink feature currently only supports the presence of one filename containing debugging information, not multiple filenames on a one-per-object-file basis."
            },
            {
                "flag": "-V",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--version",
                "arg": null,
                "description": "Show the version number for strip."
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": "--verbose",
                "arg": null,
                "description": "Verbose output: list all object files modified. In the case of archives, strip -v lists all members of the archive. @file Read command-line options from file. The options read are inserted in place of the original @file option. If file does not exist, or cannot be read, then the option will be treated literally, and not removed. Options in file are separated by whitespace. A whitespace character may be included in an option by surrounding the entire option in either single or double quotes. Any character (including a backslash) may be included by prefixing the character to be included with a backslash. The file may itself contain additional @file options; any such options will be processed recursively."
            }
        ],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 24,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": []
            },
            {
                "name": "OPTIONS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "-F",
                        "lines": 4,
                        "flag": "-F"
                    },
                    {
                        "name": "--help",
                        "lines": 2,
                        "long": "--help"
                    },
                    {
                        "name": "--info",
                        "lines": 2,
                        "long": "--info"
                    },
                    {
                        "name": "-I",
                        "lines": 3,
                        "flag": "-I"
                    },
                    {
                        "name": "-O",
                        "lines": 3,
                        "flag": "-O"
                    },
                    {
                        "name": "-R",
                        "lines": 39,
                        "flag": "-R"
                    },
                    {
                        "name": "-s",
                        "lines": 1,
                        "flag": "-s"
                    },
                    {
                        "name": "--strip-all",
                        "lines": 2,
                        "long": "--strip-all"
                    },
                    {
                        "name": "-g",
                        "lines": 1,
                        "flag": "-g"
                    },
                    {
                        "name": "-S",
                        "lines": 1,
                        "flag": "-S"
                    },
                    {
                        "name": "-d",
                        "lines": 1,
                        "flag": "-d"
                    },
                    {
                        "name": "--strip-debug",
                        "lines": 2,
                        "long": "--strip-debug"
                    },
                    {
                        "name": "--strip-dwo",
                        "lines": 4,
                        "long": "--strip-dwo"
                    },
                    {
                        "name": "--strip-unneeded",
                        "lines": 3,
                        "long": "--strip-unneeded"
                    },
                    {
                        "name": "-K",
                        "lines": 4,
                        "flag": "-K"
                    },
                    {
                        "name": "-M",
                        "lines": 1,
                        "flag": "-M"
                    },
                    {
                        "name": "--merge-notes",
                        "lines": 1,
                        "long": "--merge-notes"
                    },
                    {
                        "name": "--no-merge-notes",
                        "lines": 4,
                        "long": "--no-merge-notes"
                    },
                    {
                        "name": "-N",
                        "lines": 4,
                        "flag": "-N"
                    },
                    {
                        "name": "-o",
                        "lines": 3,
                        "flag": "-o"
                    },
                    {
                        "name": "-p",
                        "lines": 1,
                        "flag": "-p"
                    },
                    {
                        "name": "--preserve-dates",
                        "lines": 2,
                        "long": "--preserve-dates"
                    },
                    {
                        "name": "-D",
                        "lines": 1,
                        "flag": "-D"
                    },
                    {
                        "name": "--enable-deterministic-archives",
                        "lines": 6,
                        "long": "--enable-deterministic-archives"
                    },
                    {
                        "name": "-U",
                        "lines": 1,
                        "flag": "-U"
                    },
                    {
                        "name": "--disable-deterministic-archives",
                        "lines": 6,
                        "long": "--disable-deterministic-archives"
                    },
                    {
                        "name": "-w",
                        "lines": 1,
                        "flag": "-w"
                    },
                    {
                        "name": "--wildcard",
                        "lines": 11,
                        "long": "--wildcard"
                    },
                    {
                        "name": "-x",
                        "lines": 1,
                        "flag": "-x"
                    },
                    {
                        "name": "--discard-all",
                        "lines": 2,
                        "long": "--discard-all"
                    },
                    {
                        "name": "-X",
                        "lines": 1,
                        "flag": "-X"
                    },
                    {
                        "name": "--discard-locals",
                        "lines": 2,
                        "long": "--discard-locals"
                    },
                    {
                        "name": "--keep-section-symbols",
                        "lines": 3,
                        "long": "--keep-section-symbols"
                    },
                    {
                        "name": "--keep-file-symbols",
                        "lines": 3,
                        "long": "--keep-file-symbols"
                    },
                    {
                        "name": "--only-keep-debug",
                        "lines": 43,
                        "long": "--only-keep-debug"
                    },
                    {
                        "name": "-V",
                        "lines": 1,
                        "flag": "-V"
                    },
                    {
                        "name": "--version",
                        "lines": 2,
                        "long": "--version"
                    },
                    {
                        "name": "-v",
                        "lines": 1,
                        "flag": "-v"
                    },
                    {
                        "name": "--verbose",
                        "lines": 14,
                        "long": "--verbose"
                    }
                ]
            },
            {
                "name": "SEE ALSO",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT",
                "lines": 11,
                "subsections": []
            }
        ]
    }
}