01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

STRIP ( 1 ) STRIP (1)<br />

NAME<br />

strip - strip symbol and line number information from a common<br />

object file<br />

SYNOPSIS<br />

strip [-I] [-x] [-r] [-s] [-V] file-names<br />

DESCRIPTION<br />

The strip command strips the symbol table and line number information<br />

from common object files, including archives. Once this<br />

has been done, no symbolic debugging access will be available for<br />

that file; therefore, this command is normally run only on production<br />

modules that have been debugged and tested.<br />

The amount of information stripped from the symbol table can be<br />

controlled by using any of the following options:<br />

-1 Strip line number information only; do not strip any<br />

symbol table information.<br />

-x Do not strip static or external symbol information.<br />

-r Reset the relocation indexes into the symbol table.<br />

-s Reset the line number indexes into the symbol table (do<br />

not remove). reset the relocation indexes into the symbol<br />

table.<br />

-V Version of strip command executing.<br />

If there are any relocation entries in the object file and any symbol<br />

table information is to be stripped, strip will complain and terminate<br />

without stripping file-name unless the -r flag is used.<br />

If the strip command is executed on a common archive file (see<br />

ar(4)) the archive symbol table will be removed. The archive<br />

symbol table must be restored by executing the ar(l) command<br />

with the s option before the archive can be link edited by the<br />

ld(I) command. Strip (!) will instruct the user with appropriate<br />

warning messages when this situation arises.<br />

The purpose of this command is to reduce the file storage overhead<br />

taken by the object file.<br />

FILES<br />

jusr /tmpjstrp??????<br />

SEE ALSO<br />

as(l), cc(l), ld(l), ar(4), a.out(4).<br />

DIAGNOSTICS<br />

strip: name: cannot open<br />

if name cannot be read.<br />

strip: name: bad magic<br />

if name is not an appropriate common object file.<br />

strip: name: relocation entries present; cannot strip<br />

if name contains relocation entries and the -r flag<br />

is not used, the symbol table information cannot be<br />

stripped.<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!