linux中的strip命令简介

时间:2025-01-28 07:17:03
NAME
       strip - Discard symbols from object files.


SYNOPSIS
       strip [-F bfdname |--target=bfdname]
             [-I bfdname |--input-target=bfdname]
             [-O bfdname |--output-target=bfdname]
             [-s|--strip-all]
             [-S|-g|-d|--strip-debug]
             [-K symbolname |--keep-symbol=symbolname]
             [-N symbolname |--strip-symbol=symbolname]
             [-w|--wildcard]
             [-x|--discard-all] [-X |--discard-locals]
             [-R sectionname |--remove-section=sectionname]
             [-o file] [-p|--preserve-dates]
             [--keep-file-symbols]
             [--only-keep-debug]
             [-v |--verbose] [-V|--version]
             [--help] [--info]
             objfile...


DESCRIPTION
       GNU strip discards all symbols from object files objfile.  The list of object files may include archives.  At
       least one object file must be given.


       strip modifies the files named in its argument, rather than writing modified copies under different names.