• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: yaml2obj %s -o %t
2# RUN: lldb-test symbols %t | FileCheck %s
3
4## The .file symbol isn't checked, but is included to test that the symbol
5## table iteration handles cases with a symbol with more than one aux symbol.
6
7# CHECK: Type File Address/Value {{.*}} Size            Flags           Name
8# CHECK: Code 0x0000000040001000        0x{{[0-9a-f]+}} 0x{{[0-9a-f]+}} entry
9# CHECK:      0x0000000040002000        0x{{[0-9a-f]+}} 0x{{[0-9a-f]+}} variable
10
11--- !COFF
12OptionalHeader:
13  AddressOfEntryPoint: 4096
14  ImageBase:       1073741824
15  SectionAlignment: 4096
16  FileAlignment:   512
17  MajorOperatingSystemVersion: 6
18  MinorOperatingSystemVersion: 0
19  MajorImageVersion: 0
20  MinorImageVersion: 0
21  MajorSubsystemVersion: 6
22  MinorSubsystemVersion: 0
23  Subsystem:       IMAGE_SUBSYSTEM_WINDOWS_CUI
24  DLLCharacteristics: [ IMAGE_DLL_CHARACTERISTICS_HIGH_ENTROPY_VA, IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE, IMAGE_DLL_CHARACTERISTICS_NX_COMPAT, IMAGE_DLL_CHARACTERISTICS_TERMINAL_SERVER_AWARE ]
25  SizeOfStackReserve: 1048576
26  SizeOfStackCommit: 4096
27  SizeOfHeapReserve: 1048576
28  SizeOfHeapCommit: 4096
29  ExportTable:
30    RelativeVirtualAddress: 0
31    Size:            0
32  ImportTable:
33    RelativeVirtualAddress: 0
34    Size:            0
35  ResourceTable:
36    RelativeVirtualAddress: 0
37    Size:            0
38  ExceptionTable:
39    RelativeVirtualAddress: 0
40    Size:            0
41  CertificateTable:
42    RelativeVirtualAddress: 0
43    Size:            0
44  BaseRelocationTable:
45    RelativeVirtualAddress: 0
46    Size:            0
47  Debug:
48    RelativeVirtualAddress: 0
49    Size:            0
50  Architecture:
51    RelativeVirtualAddress: 0
52    Size:            0
53  GlobalPtr:
54    RelativeVirtualAddress: 0
55    Size:            0
56  TlsTable:
57    RelativeVirtualAddress: 0
58    Size:            0
59  LoadConfigTable:
60    RelativeVirtualAddress: 0
61    Size:            0
62  BoundImport:
63    RelativeVirtualAddress: 0
64    Size:            0
65  IAT:
66    RelativeVirtualAddress: 0
67    Size:            0
68  DelayImportDescriptor:
69    RelativeVirtualAddress: 0
70    Size:            0
71  ClrRuntimeHeader:
72    RelativeVirtualAddress: 0
73    Size:            0
74header:
75  Machine:         IMAGE_FILE_MACHINE_AMD64
76  Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
77sections:
78  - Name:            .text
79    Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
80    VirtualAddress:  4096
81    VirtualSize:     1
82    SectionData:     C3
83  - Name:            .data
84    Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ, IMAGE_SCN_MEM_WRITE ]
85    VirtualAddress:  8192
86    VirtualSize:     4
87    SectionData:     ''
88symbols:
89  - Name:            .text
90    Value:           0
91    SectionNumber:   1
92    SimpleType:      IMAGE_SYM_TYPE_NULL
93    ComplexType:     IMAGE_SYM_DTYPE_NULL
94    StorageClass:    IMAGE_SYM_CLASS_STATIC
95  - Name:            .data
96    Value:           0
97    SectionNumber:   2
98    SimpleType:      IMAGE_SYM_TYPE_NULL
99    ComplexType:     IMAGE_SYM_DTYPE_NULL
100    StorageClass:    IMAGE_SYM_CLASS_STATIC
101  - Name:            .bss
102    Value:           0
103    SectionNumber:   2
104    SimpleType:      IMAGE_SYM_TYPE_NULL
105    ComplexType:     IMAGE_SYM_DTYPE_NULL
106    StorageClass:    IMAGE_SYM_CLASS_STATIC
107  - Name:            .file
108    Value:           0
109    SectionNumber:   -2
110    SimpleType:      IMAGE_SYM_TYPE_NULL
111    ComplexType:     IMAGE_SYM_DTYPE_NULL
112    StorageClass:    IMAGE_SYM_CLASS_FILE
113    File:            longfilenameusingtwoauxsymbols
114  - Name:            entry
115    Value:           0
116    SectionNumber:   1
117    SimpleType:      IMAGE_SYM_TYPE_NULL
118    ComplexType:     IMAGE_SYM_DTYPE_FUNCTION
119    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
120  - Name:            variable
121    Value:           0
122    SectionNumber:   2
123    SimpleType:      IMAGE_SYM_TYPE_NULL
124    ComplexType:     IMAGE_SYM_DTYPE_NULL
125    StorageClass:    IMAGE_SYM_CLASS_EXTERNAL
126...
127