Usage: strip
Usage: strip
strip(1) GNU Development Tools strip(1) 名前 strip - オブジェクトファイルからシンボルを切り捨てる 書式 strip [-F bfdname | --target=bfdname] [-I bfdname | --input-target=bfdname] [-O bfdname | --output-target=bfdname] [-R sectionname | --remove-section=sectionname] [-s | --strip-all] [-S | -g | --strip-debug] [--strip-unneeded] [-x | --discard-all] [-X | --discard-locals] [-K symbolname | --keep-symbol=symbolname] [-N symbolname | --strip-symbol=symbolname] [-o fileR] [-p | --preserve-dates] [-v | --verbose] [-V | --version] [-V | --help] objfile... 説明 GNU strip はオブジェクトファイル objfile から全てのシンボルを切り捨てる 。オブジェクトファイルのリストには書庫 (archive) を指定することもできる 。最低ひとつのオブジェクトファイルを指定する必要がある。 strip は修正した内容を別のファイルに書き出すのではなく、引き数に指定さ れたファイルを直接修正する。 オプション -F bfdname --target=bfdname オリジナルの objfile のオブジェクトコードフォーマットを bfdname として取り扱う。また bfdname に指定されたフォーマットで書き戻す 。 --help strip のオプションの要約を表示して終了する。 -I bfdname --input-target=bfdname オリジナルの objfile のオブジェクトコードフォーマットを bfdname として取り扱う。 -O bfdname --output-target=bfdname objfile を bfdname フォーマットの出力で書き換える。 -R sectionname --remove-section=sectionname ファイルから指定した名前のセクションを削除する。このオプションは 複数指定できる。このオプションを誤ってもちいると、オブジェクトフ ァイルが使い物にならなくなる可能性がある。 -s --strip-all 全てのシンボルを削除する。 -S -g --strip-debug デバッギングシンボルのみを削除する。 --strip-unneeded リロケーション処理に不必要なシンボルを全て削除する。 -N symbolname --strip-symbol=symbolname 元のファイルから symbolname というシンボルを削除する。このオプシ ョンは複数用いることもできるし、他のオプションと同時に指定するこ ともできる。 -o file strip 処理を行った結果を元のファイルと置き換えるのではなく、 file に書き出す。この引数が用いられた場合には objfile に指定でき る引数はひとつだけである。 -p --preserve-dates ファイルのアクセス時刻、修正時刻を変更しない。 -x --discard-all グローバルでないシンボルを削除する。 -X --discard-locals コンパイラによって生成されたローカルなシンボルを削除する (これら は通常 ‘‘L’’ または ‘‘.’’ で始まる文字列である)。 -K symbolname, --keep-symbol=symbolname シンボル symbolname だけを元のファイルからコピーする。このオプシ ョンは複数指定することができる。 -N symbolname, --strip-symbol=symbolname シンボル symbolname を元のファイルからコピーしない。このオプショ ンは複数指定することができ、また -K 以外の他のオプションと組み合 わせることもできる。 -v --verbose 饒舌出力モード。変更された全てのオブジェクトファイルをリストする 。書庫の場合に strip -v とすると、書庫内のメンバー全てをリストす る。 -V --version strip のバージョン番号を表示して終了する。 関連項目 info の ‘ binutils ’ エントリ、 The GNU Binary Utilities, Roland H. Pesch (October 1991) 著作権 Copyright (c) 1991 Free Software Foundation, Inc. Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions, except that this permission notice may be included in translations approved by the Free Software Foundation instead of in the original English. cygnus support 5 November 1991 strip(1)
STRIP(1) GNU Development Tools STRIP(1)
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.
OPTIONS
-F bfdname
--target=bfdname
Treat the original objfile as a file with the object code format
bfdname, and rewrite it in the same format.
--help
Show a summary of the options to strip and exit.
--info
Display a list showing all architectures and object formats
available.
-I bfdname
--input-target=bfdname
Treat the original objfile as a file with the object code format
bfdname.
-O bfdname
--output-target=bfdname
Replace objfile with a file in the output format bfdname.
-R sectionname
--remove-section=sectionname
Remove any section named sectionname from the output file. This
option may be given more than once. Note that using this option
inappropriately may make the output file unusable.
-s
--strip-all
Remove all symbols.
-g
-S
-d
--strip-debug
Remove debugging symbols only.
--strip-unneeded
Remove all symbols that are not needed for relocation processing.
-K symbolname
--keep-symbol=symbolname
When stripping symbols, keep symbol symbolname even if it would
normally be stripped. This option may be given more than once.
-N symbolname
--strip-symbol=symbolname
Remove symbol symbolname from the source file. This option may be
given more than once, and may be combined with strip options other
than -K.
-o file
Put the stripped output in file, rather than replacing the existing
file. When this argument is used, only one objfile argument may be
specified.
-p
--preserve-dates
Preserve the access and modification dates of the file.
-w
--wildcard
Permit regular expressions in symbolnames used in other command
line options. The question mark (?), asterisk (*), backslash (\)
and square brackets ([]) operators can be used anywhere in the
symbol name. If the first character of the symbol name is the
exclamation point (!) then the sense of the switch is reversed for
that symbol. For example:
-w -K !foo -K fo*
would cause strip to only keep symbols that start with the letters
"fo", but to discard the symbol "foo".
-x
--discard-all
Remove non-global symbols.
-X
--discard-locals
Remove compiler-generated local symbols. (These usually start with
L or ..)
--keep-file-symbols
When stripping a file, perhaps with --strip-debug or
--strip-unneeded, retain any symbols specifying source file names,
which would otherwise get stripped.
--only-keep-debug
Strip a file, removing contents of any sections that would not be
stripped by --strip-debug and leaving the debugging sections
intact. In ELF files, this preserves all note sections in the
output.
The intention is that this option will be used in conjunction with
--add-gnu-debuglink to create a two part executable. One a
stripped binary which will occupy less space in RAM and in a
distribution and the second a debugging information file which is
only needed if debugging abilities are required. The suggested
procedure to create these files is as follows:
1.
"foo" then...
1.
Copyright(C) linux-cmd.com All Rights Reserved. Author Takayuki Yukawa