UNSTRIP(1) COMMAND REFERENCE UNSTRIP(1)
NAME
unstrip - add symbol table and relocation bits to a stripped
file
SYNOPSIS
unstrip [ -O suffix ] [ -S suffix ] [ -o ] [ -v ] file ...
DESCRIPTION
Unstrip adds the symbol table and relocation bits to a file
that is the output of the assembler and loader that has been
stripped. This is useful when debugging a program that has
been stripped with strip.
To use unstrip, you must have a symbol table file for the
stripped file; such as produced by strip -s.
OPTIONS
-O suffix
Create an output file named filesuffix that is an
unstripped version of file. The input file is left
stripped.
-S suffix
Symbol file table is named filesuffix. If you don't use
this option, unstrip looks for a symbol table file named
file.symtab.
-o Create an output file named file.unstripped that is an
unstripped version of file. The input file is left
stripped.
-v Verbose. Reports the names of all input, output, and
symbol table files used.
EXAMPLES
The following invocation adds the symbol table and
relocation bits to the file cmd from the file cmd.symtab and
prints messages telling you what it did:
unstrip -v cmd
The following invocation creates an unstripped version of
the file cmd in a file named cmd.out. The symbol table
information is taken from cmd.symbols.
unstrip -O ".out" -S ".symbols" cmd
Printed 10/17/86 1
UNSTRIP(1) COMMAND REFERENCE UNSTRIP(1)
FILES
/tmp/stm? Temporary file
RETURN VALUE
[NO_ERRS] Command completed without error.
[NP_WARN] An error warranting a warning message
occurred. Execution continues.
[P_WARN] A system error occurred. Execution continues.
See intro(2) for more information on system
errors.
[P_ERR] A system error occurred. Execution
terminated. See intro(2) for more
information on system errors.
SEE ALSO
ld(1), strip(1), a.out(5).
Printed 10/17/86 2
%%index%%
na:72,106;
sy:178,244;
de:422,588;
op:1010,832;
ex:1842,535;
fi:2521,94;
rv:2615,587;
se:3202,144;
%%index%%000000000132