aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-objcopy/XCOFF/basic-copy.test
blob: 467efd9b5bbf95514a1f5b3a65994dfd6725e345 (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
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy %t %t.out
# RUN: cmp %t %t.out

--- !XCOFF
FileHeader:
  MagicNumber: 0x1DF
AuxiliaryHeader:
  Magic: 0x10B
Sections:
  - Name:        .text
    Flags:       [ STYP_TEXT ]
    SectionData: "123456"
  - Name:        .data
    Flags:       [ STYP_DATA ]
    SectionData: "067891"
    Relocations:
      - Address: 0x3A
        Type:    0x02
Symbols:
  - Name:         aux_fcn_csect
    StorageClass: C_EXT
    Type:         0x20
    AuxEntries:
      - Type: AUX_FCN
      - Type: AUX_CSECT
  - Name:         aux_stat
    StorageClass: C_STAT
    AuxEntries:
      - Type: AUX_STAT
...