strip

remove debug information from executable files

Command


SYNOPSIS

strip [-m] file ...

DESCRIPTION

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.

Options

-m
preserves the timestamp of file.

DIAGNOSTICS

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.

Messages

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.

PORTABILITY

POSIX.2. x/OPEN Portability Guide 4.0.


SEE ALSO

Commands:
ar, cc, ld, make

Updated MKS Toolkit [3khat16.ico]HP3000 [3khat16.ico]3kMail [archive16.gif]