Skip to content

Instantly share code, notes, and snippets.

@retep998
Created June 18, 2016 02:24
Show Gist options
  • Save retep998/91135a7eb3f107cacb281cd02a1f49a1 to your computer and use it in GitHub Desktop.
Save retep998/91135a7eb3f107cacb281cd02a1f49a1 to your computer and use it in GitHub Desktop.
C:\Users\Peter\.multirust\toolchains\nightly-x86_64-pc-windows-gnu\bin> dumpbin .\rustc.exe /headers
Microsoft (R) COFF/PE Dumper Version 14.00.23918.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file .\rustc.exe
PE signature found
File Type: EXECUTABLE IMAGE
FILE HEADER VALUES
8664 machine (x64)
E number of sections
64373300 time date stamp Wed Apr 12 18:38:56 2023
5A00 file pointer to symbol table
465 number of symbols
F0 size of optional header
27 characteristics
Relocations stripped
Executable
Line numbers stripped
Application can handle large (>2GB) addresses
OPTIONAL HEADER VALUES
20B magic # (PE32+)
2.24 linker version
1E00 size of code
2200 size of initialized data
A00 size of uninitialized data
14D0 entry point (00000000004014D0)
1000 base of code
400000 image base (0000000000400000 to 000000000040FFFF)
1000 section alignment
200 file alignment
4.00 operating system version
0.00 image version
5.02 subsystem version
0 Win32 version
10000 size of image
400 size of headers
1A2F2 checksum
3 subsystem (Windows CUI)
100 DLL characteristics
NX compatible
200000 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
8000 [ 8AC] RVA [size] of Import Directory
0 [ 0] RVA [size] of Resource Directory
5000 [ 240] 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
A020 [ 28] RVA [size] of Thread Storage Directory
0 [ 0] RVA [size] of Load Configuration Directory
0 [ 0] RVA [size] of Bound Import Directory
822C [ 1C8] 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
1D40 virtual size
1000 virtual address (0000000000401000 to 0000000000402D3F)
1E00 size of raw data
400 file pointer to raw data (00000400 to 000021FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
60500020 flags
Code
RESERVED - UNKNOWN
RESERVED - UNKNOWN
Execute Read
SECTION HEADER #2
.data name
A0 virtual size
3000 virtual address (0000000000403000 to 000000000040309F)
200 size of raw data
2200 file pointer to raw data (00002200 to 000023FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0500040 flags
Initialized Data
RESERVED - UNKNOWN
RESERVED - UNKNOWN
Read Write
SECTION HEADER #3
.rdata name
880 virtual size
4000 virtual address (0000000000404000 to 000000000040487F)
A00 size of raw data
2400 file pointer to raw data (00002400 to 00002DFF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40500040 flags
Initialized Data
RESERVED - UNKNOWN
RESERVED - UNKNOWN
Read Only
SECTION HEADER #4
.pdata name
240 virtual size
5000 virtual address (0000000000405000 to 000000000040523F)
400 size of raw data
2E00 file pointer to raw data (00002E00 to 000031FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40300040 flags
Initialized Data
RESERVED - UNKNOWN
RESERVED - UNKNOWN
Read Only
SECTION HEADER #5
.xdata name
20C virtual size
6000 virtual address (0000000000406000 to 000000000040620B)
400 size of raw data
3200 file pointer to raw data (00003200 to 000035FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
40300040 flags
Initialized Data
RESERVED - UNKNOWN
RESERVED - UNKNOWN
Read Only
SECTION HEADER #6
.bss name
9B0 virtual size
7000 virtual address (0000000000407000 to 00000000004079AF)
0 size of raw data
0 file pointer to raw data
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0600080 flags
Uninitialized Data
RESERVED - UNKNOWN
RESERVED - UNKNOWN
Read Write
SECTION HEADER #7
.idata name
8AC virtual size
8000 virtual address (0000000000408000 to 00000000004088AB)
A00 size of raw data
3600 file pointer to raw data (00003600 to 00003FFF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0300040 flags
Initialized Data
RESERVED - UNKNOWN
RESERVED - UNKNOWN
Read Write
SECTION HEADER #8
.CRT name
68 virtual size
9000 virtual address (0000000000409000 to 0000000000409067)
200 size of raw data
4000 file pointer to raw data (00004000 to 000041FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0400040 flags
Initialized Data
RESERVED - UNKNOWN
Read Write
SECTION HEADER #9
.tls name
68 virtual size
A000 virtual address (000000000040A000 to 000000000040A067)
200 size of raw data
4200 file pointer to raw data (00004200 to 000043FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
C0600040 flags
Initialized Data
RESERVED - UNKNOWN
RESERVED - UNKNOWN
Read Write
SECTION HEADER #A
/4 name (.debug_aranges)
50 virtual size
B000 virtual address (000000000040B000 to 000000000040B04F)
200 size of raw data
4400 file pointer to raw data (00004400 to 000045FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42500040 flags
Initialized Data
RESERVED - UNKNOWN
RESERVED - UNKNOWN
Discardable
Read Only
SECTION HEADER #B
/19 name (.debug_info)
DA7 virtual size
C000 virtual address (000000000040C000 to 000000000040CDA6)
E00 size of raw data
4600 file pointer to raw data (00004600 to 000053FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42100040 flags
Initialized Data
RESERVED - UNKNOWN
Discardable
Read Only
SECTION HEADER #C
/31 name (.debug_abbrev)
87 virtual size
D000 virtual address (000000000040D000 to 000000000040D086)
200 size of raw data
5400 file pointer to raw data (00005400 to 000055FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42100040 flags
Initialized Data
RESERVED - UNKNOWN
Discardable
Read Only
SECTION HEADER #D
/45 name (.debug_line)
119 virtual size
E000 virtual address (000000000040E000 to 000000000040E118)
200 size of raw data
5600 file pointer to raw data (00005600 to 000057FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42100040 flags
Initialized Data
RESERVED - UNKNOWN
Discardable
Read Only
SECTION HEADER #E
/57 name (.debug_frame)
48 virtual size
F000 virtual address (000000000040F000 to 000000000040F047)
200 size of raw data
5800 file pointer to raw data (00005800 to 000059FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42400040 flags
Initialized Data
RESERVED - UNKNOWN
Discardable
Read Only
Summary
1000 .CRT
1000 .bss
1000 .data
1000 .debug_abbrev
1000 .debug_aranges
1000 .debug_frame
1000 .debug_info
1000 .debug_line
1000 .idata
1000 .pdata
1000 .rdata
2000 .text
1000 .tls
1000 .xdata
C:\Users\Peter\.multirust\toolchains\nightly-x86_64-pc-windows-msvc\bin> dumpbin .\rustc.exe /headers
Microsoft (R) COFF/PE Dumper Version 14.00.23918.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file .\rustc.exe
PE signature found
File Type: EXECUTABLE IMAGE
FILE HEADER VALUES
8664 machine (x64)
5 number of sections
575FA131 time date stamp Tue Jun 14 02:16:17 2016
0 file pointer to symbol table
0 number of symbols
F0 size of optional header
22 characteristics
Executable
Application can handle large (>2GB) addresses
OPTIONAL HEADER VALUES
20B magic # (PE32+)
12.00 linker version
800 size of code
E00 size of initialized data
0 size of uninitialized data
12E0 entry point (00000001400012E0)
1000 base of code
140000000 image base (0000000140000000 to 0000000140005FFF)
1000 section alignment
200 file alignment
6.00 operating system version
0.00 image version
6.00 subsystem version
0 Win32 version
6000 size of image
400 size of headers
0 checksum
3 subsystem (Windows CUI)
8160 DLL characteristics
High Entropy Virtual Addresses
Dynamic base
NX compatible
Terminal Server Aware
100000 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
237C [ 64] RVA [size] of Import Directory
0 [ 0] RVA [size] of Resource Directory
4000 [ D8] RVA [size] of Exception Directory
0 [ 0] RVA [size] of Certificates Directory
5000 [ 14] RVA [size] of Base Relocation Directory
2150 [ 38] 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
2190 [ 70] RVA [size] of Load Configuration Directory
0 [ 0] RVA [size] of Bound Import Directory
2000 [ 110] 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
6EB virtual size
1000 virtual address (0000000140001000 to 00000001400016EA)
800 size of raw data
400 file pointer to raw data (00000400 to 00000BFF)
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
75A virtual size
2000 virtual address (0000000140002000 to 0000000140002759)
800 size of raw data
C00 file pointer to raw data (00000C00 to 000013FF)
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
Debug Directories
Time Type Size RVA Pointer
-------- ------- -------- -------- --------
575FA131 cv 9D 00002200 E00 Format: RSDS, {F2AFB325-01ED-408B-BE39-FC581C9DF3D0}, 1, C:\bot\slave\nightly-dist-rustc-win-msvc-64\build\obj\x86_64-pc-windows-msvc\stage1\lib\rustlib\x86_64-pc-windows-msvc\bin\rustc.pdb
575FA131 feat 14 000022A0 EA0 Counts: Pre-VC++ 11.00=0, C/C++=17, /GS=17, /sdl=0, guardN=0
SECTION HEADER #3
.data name
80 virtual size
3000 virtual address (0000000140003000 to 000000014000307F)
200 size of raw data
1400 file pointer to raw data (00001400 to 000015FF)
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
D8 virtual size
4000 virtual address (0000000140004000 to 00000001400040D7)
200 size of raw data
1600 file pointer to raw data (00001600 to 000017FF)
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
SECTION HEADER #5
.reloc name
14 virtual size
5000 virtual address (0000000140005000 to 0000000140005013)
200 size of raw data
1800 file pointer to raw data (00001800 to 000019FF)
0 file pointer to relocation table
0 file pointer to line numbers
0 number of relocations
0 number of line numbers
42000040 flags
Initialized Data
Discardable
Read Only
Summary
1000 .data
1000 .pdata
1000 .rdata
1000 .reloc
1000 .text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment