Recommit "rL366894: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections."
[llvm-complete.git] / test / tools / llvm-objcopy / MachO / basic-big-endian-32-copy.test
blob692fb50f05816915ee5363444c36a3aef896629c
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy %t %t2
3 # RUN: cmp %t %t2
5 --- !mach-o
6 IsLittleEndian:  false
7 FileHeader:      
8   magic:           0xFEEDFACE
9   cputype:         0x00000007
10   cpusubtype:      0x00000003
11   filetype:        0x00000001
12   ncmds:           4
13   sizeofcmds:      380
14   flags:           0x00002000
15 LoadCommands:    
16   - cmd:             LC_SEGMENT
17     cmdsize:         260
18     segname:         ''
19     vmaddr:          0
20     vmsize:          184
21     fileoff:         408
22     filesize:        184
23     maxprot:         7
24     initprot:        7
25     nsects:          3
26     flags:           0
27     Sections:        
28       - sectname:        __text
29         segname:         __TEXT
30         addr:            0x0000000000000000
31         size:            61
32         offset:          0x00000198
33         align:           4
34         reloff:          0x00000250
35         nreloc:          1
36         flags:           0x80000400
37         reserved1:       0x00000000
38         reserved2:       0x00000000
39         reserved3:       0x00000000
40       - sectname:        __compact_unwind
41         segname:         __LD
42         addr:            0x0000000000000040
43         size:            40
44         offset:          0x000001D8
45         align:           2
46         reloff:          0x00000258
47         nreloc:          2
48         flags:           0x02000000
49         reserved1:       0x00000000
50         reserved2:       0x00000000
51         reserved3:       0x00000000
52       - sectname:        __eh_frame
53         segname:         __TEXT
54         addr:            0x0000000000000068
55         size:            80
56         offset:          0x00000200
57         align:           2
58         reloff:          0x00000000
59         nreloc:          0
60         flags:           0x6800000B
61         reserved1:       0x00000000
62         reserved2:       0x00000000
63         reserved3:       0x00000000
64   - cmd:             LC_VERSION_MIN_MACOSX
65     cmdsize:         16
66     version:         658688
67     sdk:             0
68   - cmd:             LC_SYMTAB
69     cmdsize:         24
70     symoff:          616
71     nsyms:           2
72     stroff:          640
73     strsize:         16
74   - cmd:             LC_DYSYMTAB
75     cmdsize:         80
76     ilocalsym:       0
77     nlocalsym:       0
78     iextdefsym:      0
79     nextdefsym:      2
80     iundefsym:       2
81     nundefsym:       0
82     tocoff:          0
83     ntoc:            0
84     modtaboff:       0
85     nmodtab:         0
86     extrefsymoff:    0
87     nextrefsyms:     0
88     indirectsymoff:  0
89     nindirectsyms:   0
90     extreloff:       0
91     nextrel:         0
92     locreloff:       0
93     nlocrel:         0
94 LinkEditData:    
95   NameList:        
96     - n_strx:          1
97       n_type:          0x0F
98       n_sect:          1
99       n_desc:          0
100       n_value:         0
101     - n_strx:          8
102       n_type:          0x0F
103       n_sect:          1
104       n_desc:          0
105       n_value:         32
106   StringTable:     
107     - ''
108     - __Z1fv
109     - _main
110     - ''
111     - ''