On peut obtenir un certain nombre d’information avec l’optioon /dump du linker de la plateforme cible. Par exemple,
« C:\Program Files\Microsoft eMbedded C++ 4.0\EVC\WCE400\BIN\link.exe » /dump -HEADERS -DEPENDENTS toto.exe > dump.txt
il donne la sortie ci-dessous avec le résumé, les dépendances, etc.
Microsoft (R) COFF/PE Dumper Version 6.24.3077 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file toto.exe PE signature found File Type: EXECUTABLE IMAGE FILE HEADER VALUES 1C2 machine (Thumb) 4 number of sections 45D9BEA6 time date stamp Mon Feb 19 16:13:42 2007 0 file pointer to symbol table 0 number of symbols E0 size of optional header 10F characteristics Relocations stripped Executable Line numbers stripped Symbols stripped 32 bit word machine OPTIONAL HEADER VALUES 10B magic # (PE32) 6.24 linker version 400 size of code 600 size of initialized data 0 size of uninitialized data 108C entry point (0001108C) 1000 base of code 2000 base of data 10000 image base (00010000 to 00014FFF) 1000 section alignment 200 file alignment 4.00 operating system version 0.00 image version 5.00 subsystem version 0 Win32 version 5000 size of image 400 size of headers 0 checksum 9 subsystem (Windows CE GUI) 0 DLL characteristics 10000 size of stack reserve 1000 size of stack commit 100000 size of heap reserve 1000 size of heap commit 0 loader flags 10 number of directories 0 [ 0] RVA [size] of Export Directory 2014 [ 28] RVA [size] of Import Directory 0 [ 0] RVA [size] of Resource Directory 4000 [ 30] RVA [size] of Exception Directory 0 [ 0] RVA [size] of Certificates Directory 0 [ 0] RVA [size] of Base Relocation Directory 0 [ 0] RVA [size] of Debug Directory 0 [ 0] RVA [size] of Architecture Directory 0 [ 0] RVA [size] of Global Pointer Directory 0 [ 0] RVA [size] of Thread Storage Directory 0 [ 0] RVA [size] of Load Configuration Directory 0 [ 0] RVA [size] of Bound Import Directory 3000 [ 14] RVA [size] of Import Address Table Directory 0 [ 0] RVA [size] of Delay Import Directory 0 [ 0] RVA [size] of COM Descriptor Directory 0 [ 0] RVA [size] of Reserved Directory SECTION HEADER #1 .text name 2B8 virtual size 1000 virtual address (00011000 to 000112B7) 400 size of raw data 400 file pointer to raw data (00000400 to 000007FF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers 60000020 flags Code Execute Read SECTION HEADER #2 .rdata name 5C virtual size 2000 virtual address (00012000 to 0001205B) 200 size of raw data 800 file pointer to raw data (00000800 to 000009FF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers 40000040 flags Initialized Data Read Only Image has the following dependencies: COREDLL.dll SECTION HEADER #3 .data name 75 virtual size 3000 virtual address (00013000 to 00013074) 200 size of raw data A00 file pointer to raw data (00000A00 to 00000BFF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers C0000040 flags Initialized Data Read Write SECTION HEADER #4 .pdata name 30 virtual size 4000 virtual address (00014000 to 0001402F) 200 size of raw data C00 file pointer to raw data (00000C00 to 00000DFF) 0 file pointer to relocation table 0 file pointer to line numbers 0 number of relocations 0 number of line numbers 40000040 flags Initialized Data Read Only Summary 1000 .data 1000 .pdata 1000 .rdata 1000 .text