49 lines · plain
1## Show that llvm-strip correctly zeroes out indirectsymoff and indirectsyms2## in LC_DYSYMTAB if there are no symbols3#4# RUN: yaml2obj %s -o %t5# RUN: llvm-strip --strip-all %t -o %t.stripped6# RUN: obj2yaml %t.stripped | FileCheck %s7 8# CHECK: indirectsymoff: 09# CHECK-NEXT: nindirectsyms: 010 11--- !mach-o12FileHeader:13 magic: 0xFEEDFACF14 cputype: 0x0100000715 cpusubtype: 0x8000000316 filetype: 0x0000000217 ncmds: 218 sizeofcmds: 10419 flags: 0x0020008520 reserved: 0x0000000021LoadCommands:22 - cmd: LC_SYMTAB23 cmdsize: 2424 symoff: 025 nsyms: 026 stroff: 027 strsize: 028 - cmd: LC_DYSYMTAB29 cmdsize: 8030 ilocalsym: 031 nlocalsym: 032 iextdefsym: 033 nextdefsym: 034 iundefsym: 035 nundefsym: 036 tocoff: 037 ntoc: 038 modtaboff: 039 nmodtab: 040 extrefsymoff: 041 nextrefsyms: 042 indirectsymoff: 4243 nindirectsyms: 044 extreloff: 045 nextrel: 046 locreloff: 047 nlocrel: 048...49