stripremove debug information from executable files |
Command |
|
strip
[
-m
]
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.
strip
removes all data that should not be there. Thus it
should successfully remove any symbol table.
-m
- preserves the timestamp of file.
Possible exit status values are:
- 0
- Successful completion.
- 1
- 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
- 2
- 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.
- Commands:
ar,
cc,
ld,
make