blob: 787ee2edbeda578cd3c3facc0b568f88e11432d7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
|
# RUN: yaml2obj %s > %t.obj
# RUN: lld-link /debug /pdb:%t.pdb /dumppdb /dll /out:%t.dll /entry:main \
# RUN: /nodefaultlib %t.obj | FileCheck %s
# CHECK: ArgList (0x1000) {
# CHECK-NEXT: TypeLeafKind: LF_ARGLIST (0x1201)
# CHECK-NEXT: NumArgs: 1
# CHECK-NEXT: Arguments [
# CHECK-NEXT: ArgType: 0x0
# CHECK-NEXT: ]
# CHECK-NEXT: }
# CHECK-NEXT: Procedure (0x1001) {
# CHECK-NEXT: TypeLeafKind: LF_PROCEDURE (0x1008)
# CHECK-NEXT: ReturnType: int (0x74)
# CHECK-NEXT: CallingConvention: NearC (0x0)
# CHECK-NEXT: FunctionOptions [ (0x0)
# CHECK-NEXT: ]
# CHECK-NEXT: NumParameters: 0
# CHECK-NEXT: ArgListType: (<no type>) (0x1000)
# CHECK-NEXT: }
# CHECK-NEXT: FuncId (0x1002) {
# CHECK-NEXT: TypeLeafKind: LF_FUNC_ID (0x1601)
# CHECK-NEXT: ParentScope: 0x0
# CHECK-NEXT: FunctionType: int (<no type>) (0x1001)
# CHECK-NEXT: Name: main
# CHECK-NEXT: }
# CHECK-NEXT: StringId (0x1003) {
# CHECK-NEXT: TypeLeafKind: LF_STRING_ID (0x1605)
# CHECK-NEXT: Id: 0x0
# CHECK-NEXT: StringData: D:\b
# CHECK-NEXT: }
# CHECK-NEXT: StringId (0x1004) {
# CHECK-NEXT: TypeLeafKind: LF_STRING_ID (0x1605)
# CHECK-NEXT: Id: 0x0
# CHECK-NEXT: StringData: C:\vs14\VC\BIN\amd64\cl.exe
# CHECK-NEXT: }
# CHECK-NEXT: StringId (0x1005) {
# CHECK-NEXT: TypeLeafKind: LF_STRING_ID (0x1605)
# CHECK-NEXT: Id: 0x0
# CHECK-NEXT: StringData: -Z7 -c -MT -IC:\vs14\VC\INCLUDE -IC:\vs14\VC\ATLMFC\INCLUDE -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared"
# CHECK-NEXT: }
# CHECK-NEXT: StringList (0x1006) {
# CHECK-NEXT: TypeLeafKind: LF_SUBSTR_LIST (0x1604)
# CHECK-NEXT: NumArgs: 1
# CHECK-NEXT: Arguments [
# CHECK-NEXT: ArgType: -Z7 -c -MT -IC:\vs14\VC\INCLUDE -IC:\vs14\VC\ATLMFC\INCLUDE -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared" (0x1005)
# CHECK-NEXT: ]
# CHECK-NEXT: }
# CHECK-NEXT: StringId (0x1007) {
# CHECK-NEXT: TypeLeafKind: LF_STRING_ID (0x1605)
# CHECK-NEXT: Id: (-Z7 -c -MT -IC:\vs14\VC\INCLUDE -IC:\vs14\VC\ATLMFC\INCLUDE -I"C:\Program Files (x86)\Windows Kits\10\include\10.0.10150.0\ucrt" -I"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\shared") (0x1006)
# CHECK-NEXT: StringData: -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" -TC -X
# CHECK-NEXT: }
# CHECK-NEXT: StringId (0x1008) {
# CHECK-NEXT: TypeLeafKind: LF_STRING_ID (0x1605)
# CHECK-NEXT: Id: 0x0
# CHECK-NEXT: StringData: ret42.c
# CHECK-NEXT: }
# CHECK-NEXT: StringId (0x1009) {
# CHECK-NEXT: TypeLeafKind: LF_STRING_ID (0x1605)
# CHECK-NEXT: Id: 0x0
# CHECK-NEXT: StringData: D:\b\vc140.pdb
# CHECK-NEXT: }
# CHECK-NEXT: BuildInfo (0x100A) {
# CHECK-NEXT: TypeLeafKind: LF_BUILDINFO (0x1603)
# CHECK-NEXT: NumArgs: 5
# CHECK-NEXT: Arguments [
# CHECK-NEXT: ArgType: D:\b (0x1003)
# CHECK-NEXT: ArgType: C:\vs14\VC\BIN\amd64\cl.exe (0x1004)
# CHECK-NEXT: ArgType: ret42.c (0x1008)
# CHECK-NEXT: ArgType: D:\b\vc140.pdb (0x1009)
# CHECK-NEXT: ArgType: -I"C:\Program Files (x86)\Windows Kits\8.1\include\um" -I"C:\Program Files (x86)\Windows Kits\8.1\include\winrt" -TC -X (0x1007)
# CHECK-NEXT: ]
# CHECK-NEXT: }
# CHECK-NEXT: UnknownSym {
# CHECK-NEXT: Kind: 0x0
# CHECK-NEXT: Length: 6
# CHECK-NEXT: }
--- !COFF
header:
Machine: IMAGE_FILE_MACHINE_AMD64
Characteristics: [ ]
sections:
- Name: .drectve
Characteristics: [ IMAGE_SCN_LNK_INFO, IMAGE_SCN_LNK_REMOVE ]
Alignment: 1
SectionData: 2020202F44454641554C544C49423A224C4942434D5422202F44454641554C544C49423A224F4C444E414D45532220
- Name: '.debug$S'
Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
Alignment: 1
SectionData: 04000000F1000000530000001500011100000000443A5C625C72657434322E6F626A003A003C1100600000D00013000000F259000013000000F25900004D6963726F736F667420285229204F7074696D697A696E6720436F6D70696C65720000F10000004E0000002A00471100000000000000000000000006000000000000000500000002100000000000000000006D61696E001C001210000000000000000000000000000000000000000000000042110002004F110000F2000000200000000000000000000000060000000000000001000000140000000000000001000080F4000000180000000100000010010BFC79AA614B536E3D64B110330D1E580000F30000000E00000000643A5C625C72657434322E63000000F10000000800000006004C110A100000
Relocations:
- VirtualAddress: 136
SymbolName: main
Type: IMAGE_REL_AMD64_SECREL
- VirtualAddress: 140
SymbolName: main
Type: IMAGE_REL_AMD64_SECTION
- VirtualAddress: 192
SymbolName: main
Type: IMAGE_REL_AMD64_SECREL
- VirtualAddress: 196
SymbolName: main
Type: IMAGE_REL_AMD64_SECTION
- Name: '.debug$T'
Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_DISCARDABLE, IMAGE_SCN_MEM_READ ]
Alignment: 1
SectionData: 040000000A00011201000000000000000E0008107400000000000000001000001200011600000000011000006D61696E00F3F2F10E00051600000000443A5C6200F3F2F12200051600000000433A5C767331345C56435C42494E5C616D6436345C636C2E6578650002010516000000002D5A37202D63202D4D54202D49433A5C767331345C56435C494E434C554445202D49433A5C767331345C56435C41544C4D46435C494E434C554445202D4922433A5C50726F6772616D2046696C65732028783836295C57696E646F7773204B6974735C31305C696E636C7564655C31302E302E31303135302E305C7563727422202D4922433A5C50726F6772616D2046696C65732028783836295C57696E646F7773204B6974735C4E4554465853444B5C342E365C696E636C7564655C756D22202D4922433A5C50726F6772616D2046696C65732028783836295C57696E646F7773204B6974735C382E315C696E636C7564655C73686172656422000A00041601000000051000008200051606100000202D4922433A5C50726F6772616D2046696C65732028783836295C57696E646F7773204B6974735C382E315C696E636C7564655C756D22202D4922433A5C50726F6772616D2046696C65732028783836295C57696E646F7773204B6974735C382E315C696E636C7564655C77696E727422202D5443202D5800F3F2F10E0005160000000072657434322E63001600051600000000443A5C625C76633134302E70646200F11A00031605000310000004100000081000000910000007100000F2F1
- Name: '.text$mn'
Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
Alignment: 16
SectionData: B82A000000C3
symbols:
- Name: '@comp.id'
Value: 17062386
SectionNumber: -1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
- Name: '@feat.00'
Value: 2147484048
SectionNumber: -1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
- Name: .drectve
Value: 0
SectionNumber: 1
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 47
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.debug$S'
Value: 0
SectionNumber: 2
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 296
NumberOfRelocations: 4
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.debug$T'
Value: 0
SectionNumber: 3
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 576
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 0
Number: 0
- Name: '.text$mn'
Value: 0
SectionNumber: 4
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_NULL
StorageClass: IMAGE_SYM_CLASS_STATIC
SectionDefinition:
Length: 6
NumberOfRelocations: 0
NumberOfLinenumbers: 0
CheckSum: 2139436471
Number: 0
- Name: main
Value: 0
SectionNumber: 4
SimpleType: IMAGE_SYM_TYPE_NULL
ComplexType: IMAGE_SYM_DTYPE_FUNCTION
StorageClass: IMAGE_SYM_CLASS_EXTERNAL
...
|