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