[lit] Add argument check: --timeout must be non-negative integer
[llvm-core.git] / test / tools / yaml2obj / coff-arm64.yaml
blob5bb9939f1fc3841de467019a591c18f1451d3044
1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-readobj --file-headers %t | FileCheck %s
3 # RUN: obj2yaml %t | FileCheck %s --check-prefix=ROUNDTRIP
5 # CHECK: OptionalHeaderSize: 240
7 # ROUNDTRIP: VirtualAddress:  4096
8 # ROUNDTRIP: VirtualAddress:  8192
9 # ROUNDTRIP: VirtualAddress:  12288
11 --- !COFF
12 OptionalHeader:  
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: 12288
40     Size:            8
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
74 header:          
75   Machine:         IMAGE_FILE_MACHINE_ARM64
76   Characteristics: [ IMAGE_FILE_EXECUTABLE_IMAGE, IMAGE_FILE_LARGE_ADDRESS_AWARE ]
77 sections:        
78   - Name:            .text
79     Characteristics: [ IMAGE_SCN_CNT_CODE, IMAGE_SCN_MEM_EXECUTE, IMAGE_SCN_MEM_READ ]
80     VirtualAddress:  4096
81     VirtualSize:     4
82     SectionData:     C0035FD6
83   - Name:            .rdata
84     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
85     VirtualAddress:  8192
86     VirtualSize:     12
87     SectionData:     0100400800000000E4E3E3E3
88   - Name:            .pdata
89     Characteristics: [ IMAGE_SCN_CNT_INITIALIZED_DATA, IMAGE_SCN_MEM_READ ]
90     VirtualAddress:  12288
91     VirtualSize:     8
92     SectionData:     '0010000000200000'
93 symbols:         []
94 ...