1 # RUN: obj2yaml %S/Inputs/aix_xcoff.o | FileCheck %s
2 # Test that we can parse the XCOFF object file correctly.
4 # CHECK-NEXT: FileHeader:
5 # CHECK-NEXT: MagicNumber: 0x01DF
6 # CHECK-NEXT: NumberOfSections: 2
7 # CHECK-NEXT: CreationTime: 1552337792
8 # CHECK-NEXT: OffsetToSymbolTable: 0x0000013A
9 # CHECK-NEXT: EntriesInSymbolTable: 22
10 # CHECK-NEXT: AuxiliaryHeaderSize: 0
11 # CHECK-NEXT: Flags: 0x0000
14 # CHECK-NEXT: - Name: .file
15 # CHECK-NEXT: Value: 0x00000000
16 # CHECK-NEXT: Section: N_DEBUG
17 # CHECK-NEXT: Type: 0x0003
18 # CHECK-NEXT: StorageClass: C_FILE
19 # CHECK-NEXT: NumberOfAuxEntries: 1
20 # CHECK-NEXT: - Name: i
21 # CHECK-NEXT: Value: 0x00000000
22 # CHECK-NEXT: Section: N_UNDEF
23 # CHECK-NEXT: Type: 0x0000
24 # CHECK-NEXT: StorageClass: C_EXT
25 # CHECK-NEXT: NumberOfAuxEntries: 1
26 # CHECK-NEXT: - Name: TestforXcoff
27 # CHECK-NEXT: Value: 0x00000000
28 # CHECK-NEXT: Section: N_UNDEF
29 # CHECK-NEXT: Type: 0x0000
30 # CHECK-NEXT: StorageClass: C_EXT
31 # CHECK-NEXT: NumberOfAuxEntries: 1
32 # CHECK-NEXT: - Name: .text
33 # CHECK-NEXT: Value: 0x00000000
34 # CHECK-NEXT: Section: .text
35 # CHECK-NEXT: Type: 0x0000
36 # CHECK-NEXT: StorageClass: C_HIDEXT
37 # CHECK-NEXT: NumberOfAuxEntries: 1
38 # CHECK-NEXT: - Name: .main
39 # CHECK-NEXT: Value: 0x00000000
40 # CHECK-NEXT: Section: .text
41 # CHECK-NEXT: Type: 0x0000
42 # CHECK-NEXT: StorageClass: C_EXT
43 # CHECK-NEXT: NumberOfAuxEntries: 1
44 # CHECK-NEXT: - Name: main
45 # CHECK-NEXT: Value: 0x00000060
46 # CHECK-NEXT: Section: .data
47 # CHECK-NEXT: Type: 0x0000
48 # CHECK-NEXT: StorageClass: C_HIDEXT
49 # CHECK-NEXT: NumberOfAuxEntries: 1
50 # CHECK-NEXT: - Name: main
51 # CHECK-NEXT: Value: 0x00000060
52 # CHECK-NEXT: Section: .data
53 # CHECK-NEXT: Type: 0x0000
54 # CHECK-NEXT: StorageClass: C_EXT
55 # CHECK-NEXT: NumberOfAuxEntries: 1
56 # CHECK-NEXT: - Name: .data
57 # CHECK-NEXT: Value: 0x00000070
58 # CHECK-NEXT: Section: .data
59 # CHECK-NEXT: Type: 0x0000
60 # CHECK-NEXT: StorageClass: C_HIDEXT
61 # CHECK-NEXT: NumberOfAuxEntries: 1
62 # CHECK-NEXT: - Name: TOC
63 # CHECK-NEXT: Value: 0x00000074
64 # CHECK-NEXT: Section: .data
65 # CHECK-NEXT: Type: 0x0000
66 # CHECK-NEXT: StorageClass: C_HIDEXT
67 # CHECK-NEXT: NumberOfAuxEntries: 1
68 # CHECK-NEXT: - Name: i
69 # CHECK-NEXT: Value: 0x00000074
70 # CHECK-NEXT: Section: .data
71 # CHECK-NEXT: Type: 0x0000
72 # CHECK-NEXT: StorageClass: C_HIDEXT
73 # CHECK-NEXT: NumberOfAuxEntries: 1
74 # CHECK-NEXT: - Name: TestforXcoff
75 # CHECK-NEXT: Value: 0x00000078
76 # CHECK-NEXT: Section: .data
77 # CHECK-NEXT: Type: 0x0000
78 # CHECK-NEXT: StorageClass: C_HIDEXT
79 # CHECK-NEXT: NumberOfAuxEntries: 1