summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/obj2yaml/aix_xcoff.test
blob: b3e60dfd0580e565e8edecf63d25bbab699eb9bd (plain)
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
# RUN: obj2yaml %S/Inputs/aix_xcoff.o | FileCheck %s
# Test that we can parse the XCOFF object file correctly.
# CHECK: --- !XCOFF
# CHECK-NEXT: FileHeader:
# CHECK-NEXT:   MagicNumber:     0x01DF
# CHECK-NEXT:   NumberOfSections: 2
# CHECK-NEXT:   CreationTime:    1552337792
# CHECK-NEXT:   OffsetToSymbolTable: 0x0000013A
# CHECK-NEXT:   EntriesInSymbolTable: 22
# CHECK-NEXT:   AuxiliaryHeaderSize: 0
# CHECK-NEXT:   Flags:           0x0000

# CHECK: Symbols:
# CHECK-NEXT:   - Name:      .file
# CHECK-NEXT:     Value:     0x00000000
# CHECK-NEXT:     Section: N_DEBUG
# CHECK-NEXT:     Type:      0x0003
# CHECK-NEXT:     StorageClass:    C_FILE
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT:   - Name:      i
# CHECK-NEXT:     Value:     0x00000000
# CHECK-NEXT:     Section: N_UNDEF
# CHECK-NEXT:     Type:      0x0000
# CHECK-NEXT:     StorageClass:    C_EXT
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT:   - Name:      TestforXcoff
# CHECK-NEXT:     Value:     0x00000000
# CHECK-NEXT:     Section: N_UNDEF
# CHECK-NEXT:     Type:      0x0000
# CHECK-NEXT:     StorageClass:    C_EXT
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT:   - Name:      .text
# CHECK-NEXT:     Value:     0x00000000
# CHECK-NEXT:     Section: .text
# CHECK-NEXT:     Type:      0x0000
# CHECK-NEXT:     StorageClass:    C_HIDEXT
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT:   - Name:      .main
# CHECK-NEXT:     Value:     0x00000000
# CHECK-NEXT:     Section: .text
# CHECK-NEXT:     Type:      0x0000
# CHECK-NEXT:     StorageClass:    C_EXT
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT:   - Name:      main
# CHECK-NEXT:     Value:     0x00000060
# CHECK-NEXT:     Section: .data
# CHECK-NEXT:     Type:      0x0000
# CHECK-NEXT:     StorageClass:    C_HIDEXT
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT:   - Name:      main
# CHECK-NEXT:     Value:     0x00000060
# CHECK-NEXT:     Section: .data
# CHECK-NEXT:     Type:      0x0000
# CHECK-NEXT:     StorageClass:    C_EXT
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT:   - Name:      .data
# CHECK-NEXT:     Value:     0x00000070
# CHECK-NEXT:     Section: .data
# CHECK-NEXT:     Type:      0x0000
# CHECK-NEXT:     StorageClass:    C_HIDEXT
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT:   - Name:      TOC
# CHECK-NEXT:     Value:     0x00000074
# CHECK-NEXT:     Section: .data
# CHECK-NEXT:     Type:      0x0000
# CHECK-NEXT:     StorageClass:    C_HIDEXT
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT:   - Name:      i
# CHECK-NEXT:     Value:     0x00000074
# CHECK-NEXT:     Section: .data
# CHECK-NEXT:     Type:      0x0000
# CHECK-NEXT:     StorageClass:    C_HIDEXT
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT:   - Name:      TestforXcoff
# CHECK-NEXT:     Value:     0x00000078
# CHECK-NEXT:     Section: .data
# CHECK-NEXT:     Type:      0x0000
# CHECK-NEXT:     StorageClass:    C_HIDEXT
# CHECK-NEXT:     NumberOfAuxEntries: 1
# CHECK-NEXT: ...
OpenPOWER on IntegriCloud