1## This test verifies that a virtual section does not contribute to the final 2## output size. 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: 4096 23 fileoff: 152 24 filesize: 0 25 maxprot: 7 26 initprot: 7 27 nsects: 1 28 flags: 0 29 Sections: 30 - sectname: __bss 31 segname: __DATA 32 addr: 0x0000000000001000 33 size: 4096 34 offset: 0x00000000 35 align: 2 36 reloff: 0x00000000 37 nreloc: 0 38 flags: 0x00000001 39 reserved1: 0x00000000 40 reserved2: 0x00000000 41 reserved3: 0x00000000 42... 43