{
    "content": [
        {
            "type": "text",
            "text": "# STRIP (man)\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[--strip-section-headers]\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\n## TLDR\n\n> Discard symbols from executables or object files.\n\n- Replace the input file with its stripped version:\n  `strip {{path/to/file}}`\n- Strip symbols from a file, saving the output to a specific file:\n  `strip {{path/to/input_file}} -o {{path/to/output_file}}`\n- Strip debug symbols only:\n  `strip {{-d|--strip-debug}} {{path/to/file.o}}`\n\n*Source: tldr-pages*\n\n## Sections\n\n- **NAME**\n- **SYNOPSIS**\n- **DESCRIPTION**\n- **OPTIONS** (40 subsections)\n- **SEE ALSO**\n- **COPYRIGHT**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "STRIP",
        "section": "",
        "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[--strip-section-headers]\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...",
        "tldr_summary": "Discard symbols from executables or object files.",
        "tldr_examples": [
            {
                "description": "Replace the input file with its stripped version",
                "command": "strip {{path/to/file}}"
            },
            {
                "description": "Strip symbols from a file, saving the output to a specific file",
                "command": "strip {{path/to/input_file}} -o {{path/to/output_file}}"
            },
            {
                "description": "Strip debug symbols only",
                "command": "strip {{-d|--strip-debug}} {{path/to/file.o}}"
            }
        ],
        "tldr_source": "official",
        "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": "",
                "long": "--strip-section-headers",
                "arg": null,
                "description": "Strip section headers. This option is specific to ELF files. Implies --strip-all and --merge-notes."
            },
            {
                "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": 25,
                "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": "--strip-section-headers",
                        "lines": 3,
                        "long": "--strip-section-headers"
                    },
                    {
                        "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": 9,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "strip - discard symbols and other data from object files\n",
                "subsections": []
            },
            "SYNOPSIS": {
                "content": "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[--strip-section-headers]\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",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "GNU 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",
                "subsections": []
            },
            "OPTIONS": {
                "content": "",
                "subsections": [
                    {
                        "name": "-F _",
                        "content": "--target=bfdname\nTreat  the original objfile as a file with the object code format bfdname, and rewrite it\nin the same format.\n",
                        "flag": "-F"
                    },
                    {
                        "name": "--help",
                        "content": "Show a summary of the options to strip and exit.\n",
                        "long": "--help"
                    },
                    {
                        "name": "--info",
                        "content": "Display a list showing all architectures and object formats available.\n",
                        "long": "--info"
                    },
                    {
                        "name": "-I _",
                        "content": "--input-target=bfdname\nTreat the original objfile as a file with the object code format bfdname.\n",
                        "flag": "-I"
                    },
                    {
                        "name": "-O _",
                        "content": "--output-target=bfdname\nReplace objfile with a file in the output format bfdname.\n",
                        "flag": "-O"
                    },
                    {
                        "name": "-R _",
                        "content": "--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",
                        "flag": "-R"
                    },
                    {
                        "name": "--strip-section-headers",
                        "content": "Strip  section  headers.   This option is specific to ELF files.  Implies --strip-all and\n--merge-notes.\n",
                        "long": "--strip-section-headers"
                    },
                    {
                        "name": "-s",
                        "content": "",
                        "flag": "-s"
                    },
                    {
                        "name": "--strip-all",
                        "content": "Remove all symbols.\n",
                        "long": "--strip-all"
                    },
                    {
                        "name": "-g",
                        "content": "",
                        "flag": "-g"
                    },
                    {
                        "name": "-S",
                        "content": "",
                        "flag": "-S"
                    },
                    {
                        "name": "-d",
                        "content": "",
                        "flag": "-d"
                    },
                    {
                        "name": "--strip-debug",
                        "content": "Remove debugging symbols only.\n",
                        "long": "--strip-debug"
                    },
                    {
                        "name": "--strip-dwo",
                        "content": "Remove 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",
                        "long": "--strip-dwo"
                    },
                    {
                        "name": "--strip-unneeded",
                        "content": "Remove all symbols that are not needed for relocation processing in addition to debugging\nsymbols and sections stripped by --strip-debug.\n",
                        "long": "--strip-unneeded"
                    },
                    {
                        "name": "-K _",
                        "content": "--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",
                        "flag": "-K"
                    },
                    {
                        "name": "-M",
                        "content": "",
                        "flag": "-M"
                    },
                    {
                        "name": "--merge-notes",
                        "content": "",
                        "long": "--merge-notes"
                    },
                    {
                        "name": "--no-merge-notes",
                        "content": "For  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",
                        "long": "--no-merge-notes"
                    },
                    {
                        "name": "-N _",
                        "content": "--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",
                        "flag": "-N"
                    },
                    {
                        "name": "-o _",
                        "content": "Put the stripped output in file, rather than replacing  the  existing  file.   When  this\nargument is used, only one objfile argument may be specified.\n",
                        "flag": "-o"
                    },
                    {
                        "name": "-p",
                        "content": "",
                        "flag": "-p"
                    },
                    {
                        "name": "--preserve-dates",
                        "content": "Preserve the access and modification dates of the file.\n",
                        "long": "--preserve-dates"
                    },
                    {
                        "name": "-D",
                        "content": "",
                        "flag": "-D"
                    },
                    {
                        "name": "--enable-deterministic-archives",
                        "content": "Operate  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",
                        "long": "--enable-deterministic-archives"
                    },
                    {
                        "name": "-U",
                        "content": "",
                        "flag": "-U"
                    },
                    {
                        "name": "--disable-deterministic-archives",
                        "content": "Do  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",
                        "long": "--disable-deterministic-archives"
                    },
                    {
                        "name": "-w",
                        "content": "",
                        "flag": "-w"
                    },
                    {
                        "name": "--wildcard",
                        "content": "Permit  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",
                        "long": "--wildcard"
                    },
                    {
                        "name": "-x",
                        "content": "",
                        "flag": "-x"
                    },
                    {
                        "name": "--discard-all",
                        "content": "Remove non-global symbols.\n",
                        "long": "--discard-all"
                    },
                    {
                        "name": "-X",
                        "content": "",
                        "flag": "-X"
                    },
                    {
                        "name": "--discard-locals",
                        "content": "Remove compiler-generated local symbols.  (These usually start with L or ..)\n",
                        "long": "--discard-locals"
                    },
                    {
                        "name": "--keep-section-symbols",
                        "content": "When stripping a file, perhaps with --strip-debug or --strip-unneeded, retain any symbols\nspecifying section names, which would otherwise get stripped.\n",
                        "long": "--keep-section-symbols"
                    },
                    {
                        "name": "--keep-file-symbols",
                        "content": "When stripping a file, perhaps with --strip-debug or --strip-unneeded, retain any symbols\nspecifying source file names, which would otherwise get stripped.\n",
                        "long": "--keep-file-symbols"
                    },
                    {
                        "name": "--only-keep-debug",
                        "content": "Strip 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",
                        "long": "--only-keep-debug"
                    },
                    {
                        "name": "-V",
                        "content": "",
                        "flag": "-V"
                    },
                    {
                        "name": "--version",
                        "content": "Show the version number for strip.\n",
                        "long": "--version"
                    },
                    {
                        "name": "-v",
                        "content": "",
                        "flag": "-v"
                    },
                    {
                        "name": "--verbose",
                        "content": "Verbose  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",
                        "long": "--verbose"
                    }
                ]
            },
            "SEE ALSO": {
                "content": "the Info entries for binutils.\n",
                "subsections": []
            },
            "COPYRIGHT": {
                "content": "Copyright (c) 1991-2024 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\nbinutils-2.42                                2026-02-09                                     STRIP(1)",
                "subsections": []
            }
        }
    }
}