Go to the first, previous, next, last section, table of contents.
strip [@option{-F} bfdname |@option{--target=}bfdname ]
[@option{-I} bfdname |@option{--input-target=}bfdname ]
[@option{-O} bfdname |@option{--output-target=}bfdname ]
[@option{-s}|@option{--strip-all}] [@option{-S}|@option{-g}|@option{-d}|@option{--strip-debug}]
[@option{-K} symbolname |@option{--keep-symbol=}symbolname ]
[@option{-N} symbolname |@option{--strip-symbol=}symbolname ]
[@option{-x}|@option{--discard-all} ] [@option{-X} |@option{--discard-locals}]
[@option{-R} sectionname |@option{--remove-section=}sectionname ]
[@option{-o} file ] [@option{-p}|@option{--preserve-dates}]
[@option{-v} |@option{--verbose}] [@option{-V}|@option{--version}] [@option{--help}]
objfile...
GNU @command{strip} discards all symbols from object files
objfile. The list of object files may include archives.
At least one object file must be given.
@command{strip} modifies the files named in its argument,
rather than writing modified copies under different names.
- @env{-F bfdname}
-
- @env{--target=bfdname}
-
Treat the original objfile as a file with the object
code format bfdname, and rewrite it in the same format.
See section Target Selection, for more information.
- @env{--help}
-
Show a summary of the options to @command{strip} and exit.
- @env{-I bfdname}
-
- @env{--input-target=bfdname}
-
Treat the original objfile as a file with the object
code format bfdname.
See section Target Selection, for more information.
- @env{-O bfdname}
-
- @env{--output-target=bfdname}
-
Replace objfile with a file in the output format bfdname.
See section Target Selection, for more information.
- @env{-R sectionname}
-
- @env{--remove-section=sectionname}
-
Remove any section named sectionname from the output file. This
option may be given more than once. Note that using this option
inappropriately may make the output file unusable.
- @env{-s}
-
- @env{--strip-all}
-
Remove all symbols.
- @env{-g}
-
- @env{-S}
-
- @env{-d}
-
- @env{--strip-debug}
-
Remove debugging symbols only.
- @env{--strip-unneeded}
-
Remove all symbols that are not needed for relocation processing.
- @env{-K symbolname}
-
- @env{--keep-symbol=symbolname}
-
Keep only symbol symbolname from the source file. This option may
be given more than once.
- @env{-N symbolname}
-
- @env{--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
@option{-K}.
- @env{-o file}
-
Put the stripped output in file, rather than replacing the
existing file. When this argument is used, only one objfile
argument may be specified.
- @env{-p}
-
- @env{--preserve-dates}
-
Preserve the access and modification dates of the file.
- @env{-x}
-
- @env{--discard-all}
-
Remove non-global symbols.
- @env{-X}
-
- @env{--discard-locals}
-
Remove compiler-generated local symbols.
(These usually start with `L' or `.'.)
- @env{-V}
-
- @env{--version}
-
Show the version number for @command{strip}.
- @env{-v}
-
- @env{--verbose}
-
Verbose output: list all object files modified. In the case of
archives, `strip -v' lists all members of the archive.
Go to the first, previous, next, last section, table of contents.