1## This test verifies that a regular (non-zero-fill) section with zero offset
2## and zero size is not modifed, this behavior is consistent with cctools' strip.
3
4# RUN: yaml2obj %s -o %t
5# RUN: llvm-objcopy %t %t.copy
6# RUN: cmp %t %t.copy
7
8--- !mach-o
9FileHeader:
10  magic:           0xFEEDFACE
11  cputype:         0x00000007
12  cpusubtype:      0x00000003
13  filetype:        0x00000001
14  ncmds:           1
15  sizeofcmds:      124
16  flags:           0x00002000
17LoadCommands:
18  - cmd:             LC_SEGMENT
19    cmdsize:         124
20    segname:         __DATA
21    vmaddr:          4096
22    vmsize:          0
23    fileoff:         152
24    filesize:        0
25    maxprot:         7
26    initprot:        7
27    nsects:          1
28    flags:           0
29    Sections:
30      - sectname:        __broken
31        segname:         __DATA
32        addr:            0x0000000000001000
33        size:            0
34        offset:          0x00000000
35        align:           2
36        reloff:          0x00000000
37        nreloc:          0
38        flags:           0x00000000
39        reserved1:       0x00000000
40        reserved2:       0x00000000
41        reserved3:       0x00000000
42        content:         ''
43...
44