文書番号: 121460 - 最終更新日: 2006年10月31日 - リビジョン: 4.1

共通オブジェクト ファイル形式 (COFF)

すべて展開する | すべて折りたたむ

概要

Windows NT は特殊な形式を採用して、実行可能ファイル (イメージ) ファイルとオブジェクト ファイルいます。 これらのファイルで使用される形式は、ポータブル実行可能 (PE) または共通オブジェクト ファイル形式 (COFF) ファイルと呼ばれます。 名前がポータブル実行可能ファイル参照する実行可能ファイルを 1 つ以上のプラットフォームで実行できるという事実です。 この資料では PE/COFF ファイル形式とそのパラメーターの内部の機能を詳しく説明します。

詳細

PE/COFF ファイル ヘッダーを MS-DOS スタブ、ファイルの署名、COFF ヘッダー、およびオプション ヘッダーから構成されます。 オブジェクト ファイル、COFF ヘッダーのみがイメージ ファイル上で説明したすべてのヘッダー。 これらのヘッダーの最も重要なは、COFF ヘッダーです。 次の表は COFF ヘッダーに格納された情報を示します。

Offset Size Field               Description
------ ---- ------------------- -----------------------------------------------
0       2   Machine             Number identifying type of target machine.
2       2   Number of Sections  Number of sections; indicates size of the
                                Section Table, which immediately follows
                                the headers.
4       4   Time/Date Stamp     Time and date the file was created.
8       4   Pointer to Symbol   Offset, within the COFF file, of the symbol
            Table               table.
12      4   Number of Symbols   Number of entries in the symbol table.
                                This data can be used in locating the
                                string table, which immediately follows
                                the symbol table.
16      2   Optional Header     Size of the optional header, which is
            Size                included for executable files but not
                                object files. An object file should have a
                                value of 0 here.
18      2   Characteristics     Flags indicating attributes of the file.
				
Windows NT ソフトウェア開発キット (SDK) は DUMPBIN と呼ばれるユーティリティを提供します。 DUMPBIN は 32 ビット COFF (一般的なオブジェクト ファイル形式) のバイナリ ファイルに関する情報を表示する 32 ビット ツールです。 DUMPBIN をコマンド プロンプトからのみ実行します。 DUMPBIN を使用して、次の種類の COFF ファイルを確認することができます: オブジェクト ファイル、COFF オブジェクト、実行可能ファイル、およびダイナミック リンク ライブラリ (DLL) ファイルの標準ライブラリ。

DUMPBIN を実行するには、次の構文を使用します。
DUMPBIN [オプション] の [ファイル]
以下にオプションのパラメーターと DUMPBIN の定義:
   /ALL
   /ARCHIVEMEMBERS
   /DISASM
   /EXPORTS
   /HEADERS
   /IMPORTS
   /LINENUMBERS
   /LINKERMEMBER[:{1|2}]
   /OUT:filename
   /PDATA
   /RAWDATA[:{NONE|BYTES|SHORTS|LONGS}[,#]]
   /RELOCATIONS
   /SECTION:name
   /SUMMARY
   /SYMBOLS
				
Options          Definition
---------------- -------------------------------------------------------
/ALL             Setting this option causes DUMPBIN to display all
                 available information except code disassembly.

/ARCHIVEMEMBERS  Setting this option causes DUMPBIN to display minimal
                 information about member objects in a library.

/DISASM          Setting this option causes DUMPBIN to show disassembly
                 of code sections, using symbols if present in the file.

/EXPORTS         This option causes DUMPBIN to list all definitions
                 exported from an executable file or DLL.

/HEADERS         Setting this option causes DUMPBIN to display the file
                 header and the header for each section. When used with a
                 library, displays the header for each member object.

/IMPORTS         This option causes DUMPBIN to list all definitions
                 imported to an executable file or DLL.

/LINENUMBERS     Setting this option causes DUMPBIN to show COFF line
                 numbers. Line numbers exist in an object file if it was
                 compiled with /Zi. An executable file or DLL contains
                 COFF line numbers if it was linked with /DEBUG and
                 /DEBUGTYPE:COFF option.

/LINKERMEMBER [[:{1|2}]]
                 Setting this option causes DUMPBIN to list public symbols
                 defined in a library. Specify the 1 argument to display
                 symbols in object order, along with their offsets. Specify
                 the 2 argument to display offsets and index numbers of
                 objects, then list the symbols in alphabetical order along
                 with the object index for each. To get both outputs,
                 specify /LINKERMEMBER without the number argument.

/OUT:<filename>  This option specifies a filename for the output.

/RAWDATA [[:{BYTES|SHORTS|LONGS|NONE}[[,number]]]]
                 Setting this option causes DUMPBIN to display the raw
                 contents of each section in the file. The arguments
                 control the format of the display, as follows:
      Argument - Result
      BYTES    - The default. Contents are displayed in hexadecimal bytes,
                 and also as ASCII if they have a printed representation.
      SHORTS   - Contents are displayed in hexadecimal words.
      LONGS    - Contents are displayed in hexadecimal longwords.
      NONE     - Raw data is suppressed. This is useful to control the
                 output of /ALL.
      number   - Displayed lines are set to a width that holds number
                 values per line.

/RELOCATIONS     Setting this option causes DUMPBIN to display any
                 relocations in the object or image.

/SECTION: <section>
              This option restricts the output to information on the
              specified section.

/SUMMARY      Setting this option causes DUMPBIN to display minimal
              information about sections, including total size. This
              option is the default if no other option is specified
              in a DUMPBIN command.

/SYMBOLS      Setting this option causes DUMPBIN to display the COFF symbol
              table. Symbol tables exist in all object files. A COFF symbol
              table appears in an image file only if it is linked with
              /DEBUG /DEBUGTYPE:COFF
				

この資料は以下の製品について記述したものです。
  • Microsoft Windows NT Advanced Server 3.1
  • Microsoft Windows NT Workstation 3.1
  • Microsoft Windows NT Workstation 3.5
  • Microsoft Windows NT Server 3.5
キーワード:?
kbmt KB121460 KbMtja
機械翻訳機械翻訳
重要: このサポート技術情報 (以下「KB」) は、翻訳者による翻訳の代わりに、マイクロソフト機械翻訳システムによって翻訳されたものです。マイクロソフトは、お客様に、マイクロソフトが提供している全ての KB を日本語でご利用いただけるように、翻訳者による翻訳 KB に加え機械翻訳 KB も提供しています。しかしながら、機械翻訳の品質は翻訳者による翻訳ほど十分ではありません。誤訳や、文法、言葉使い、その他、たとえば日本語を母国語としない方が日本語を話すときに間違えるようなミスを含んでいる可能性があります。マイクロソフトは、機械翻訳の品質、及び KB の内容の誤訳やお客様が KB を利用されたことによって生じた直接または間接的な問題や損害については、いかなる責任も負わないものとします。マイクロソフトは、機械翻訳システムの改善を継続的に行っています。
英語版 KB:121460? (http://support.microsoft.com/kb/121460/en-us/ )
"Microsoft Knowledge Baseに含まれている情報は、いかなる保証もない現状ベースで提供されるものです。Microsoft Corporation及びその関連会社は、市場性および特定の目的への適合性を含めて、明示的にも黙示的にも、一切の保証をいたしません。さらに、Microsoft Corporation及びその関連会社は、本文書に含まれている情報の使用及び使用結果につき、正確性、真実性等、いかなる表明・保証も行ないません。Microsoft Corporation、その関連会社及びこれらの権限ある代理人による口頭または書面による一切の情報提供またはアドバイスは、保証を意味するものではなく、かつ上記免責条項の範囲を狭めるものではありません。Microsoft Corporation、その関連会社 及びこれらの者の供給者は、直接的、間接的、偶発的、結果的損害、逸失利益、懲罰的損害、または特別損害を含む全ての損害に対して、状況のいかんを問わず一切責任を負いません。(Microsoft Corporation、その関連会社 またはこれらの者の供給者がかかる損害の発生可能性を了知している場合を含みます。) 結果的損害または偶発的損害に対する責任の免除または制限を認めていない地域においては、上記制限が適用されない場合があります。なお、本文書においては、文書の体裁上の都合により製品名の表記において商標登録表示、その他の商標表示を省略している場合がありますので、予めご了解ください。"
 

サポート技術情報の翻訳