Name
strip
Synopsis
strip [options]files
Remove symbols from object files, thereby reducing file sizes and freeing disk space.
Options
- -F bfdname, --target=bfdname
Specify object format for both input and output by binary file descriptor name bfdname. Use option -h to see a list of supported formats.
- -I bfdname, --input-target=bfdname
Expect object format bfdname for input.
- --help
Print help message, then exit.
- -K symbol, --keep-symbol=symbol
Delete all symbols except the specified symbol. This option may be used more than once.
- -N symbol, --strip-symbol=symbol
Remove symbol from the source file.
- -O bfdname, --output-target=bfdname
Use object format bfdname for output.
- -o file
Write stripped object to file instead of replacing the original. Only one object file at a time may be stripped when using this option.
- -p, --preserve-dates
Preserve access and modification times.
- -R section, --remove-section=section
Delete section.
- -S, -g, -d, --strip-debug
Strip debugging symbols.
- -s, --strip-all
Strip all symbols.
- --strip-unneeded
Remove symbols not needed for relocation processing.
- -V, --version
Print version and exit.
- -v, --verbose
Verbose mode.
- -X, --discard-locals
Strip local symbols that were generated by the compiler.
- -x, --discard-all
Strip nonglobal symbols.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access