STRIP(1) HP-UX 5.0 STRIP(1) NAME strip - compact object files SYNOPSIS strip [ -a ] [ -l ] [ -x ] [ -r ] [ -V ] file ... HP-UX COMPATIBILITY Level: HP-UX/DEVELOPMENT Origin: System V DESCRIPTION Strip will remove portions of an object file that are not used during execution. These portions are the symbol table and debugging information. Files to be stripped may be seperate, or combined in an ar(1) file. Stripping may be controlled using the following options: -a Strip a file as much as possible. -l Remove only debugging (line numbering) information. -x Do not remove external symbols. -r Maintain relocation references to external symbols. -V Print the version of the strip command being used on standard error. The -r option must be used to strip files containing relocation entries (ie. references to undefined external symbols). The -r and -x options must be used together to strip a .o file without making it essentially unusable by the link editor ld(1). When you strip archive files, (eg. libc.a), the archive symbol table is removed. This table must be restored using ar(1) with the s option before the archive can be link edited by ld(1). A warning message will be given if this situation arises. Object code blocks within an archive are treated as seperate files and will be stripped accordingly. This is different than the System III version of strip(1). The -a option may be used to strip files as much as possible. This option strips all symbols from programs and local symbols from .o files. In addition, all debugging information is removed. Directories and data files are ignored to allow whole directories to be stripped with 'strip -a *'. Archives will be reduced to thier smallest possible size, with each block being stripped in a safe and reasonable manner. This option overrides -l and -r, and may be used with -x. When the -l option is used, only debugging information for sdb(1) is removed. Once stripped, the object file cannot be used with sdb(1). FILES /tmp/strp* temporary files SEE ALSO ar(1), as(1), cc(1), ld(1), ar(5), a.out(5). DIAGNOSTICS strip: name: bad magic the file is not an archive or object file strip: name: cannot strip: relocation entries present the file contains 'undefined external' symbols (use -x -r) Other dianostics are self explanitory.