remove debug information from executable files 



strip [-fm] file ...


Some linkers can write symbol tables into executable files for the aid of debuggers and other programming tools.

strip removes symbolic information (and other information not required for execution) from an executable file with a view to conserving disk space for production (that is, already debugged) programs. The Windows executable headers indicate how much data should be in an executable file. strip removes all data that should not be there. Thus it should successfully remove any symbol table; however, any executable which uses data outside its executable image, fails.

Normally, attempting to use strip on an executable which contains a digital certificate results in an error. You can use -f to avoid this error, although this is not recommended.



forces the executable to be stripped even if a digital certificate is present.


preserves the timestamp of file.


Possible exit status values are:


Successful completion.


Failure due to any of the following:

file could not be opened
— an error occurred while reading file
file is not an executable file
file is executable, but appears corrupted

No file was specified on the command line.


file "name": system error 

The named executable file does not exist or is unreadable.

Cannot create temporary file 
Output error (no space) on file 

There is insufficient disk space to hold a temporary copy of the executable file. For implementation reasons, strip makes a copy of each file being stripped.

File "name": not in executable format 

This is a warning that file name is not modified.


POSIX.2. x/OPEN Portability Guide 4.0. All UNIX systems. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.


PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition

PTC MKS Toolkit 10.4 Documentation Build 39.