45 lines · plain
1## This test verifies that the load commands LC_THREAD/LC_UNIXTHREAD2## are copied correctly.3 4# RUN: yaml2obj -D LC_NAME=LC_THREAD %s -o %t.lc_thread.exe5# RUN: llvm-objcopy %t.lc_thread.exe %t.lc_thread.exe.copy6# RUN: cmp %t.lc_thread.exe %t.lc_thread.exe.copy7 8# RUN: yaml2obj -D LC_NAME=LC_UNIXTHREAD %s -o %t.lc_unixthread.exe9# RUN: llvm-objcopy %t.lc_unixthread.exe %t.lc_unixthread.exe.copy10# RUN: cmp %t.lc_unixthread.exe %t.lc_unixthread.exe.copy11 12--- !mach-o13IsLittleEndian: true14FileHeader:15 magic: 0xFEEDFACF16 cputype: 0x100000717 cpusubtype: 0x318 filetype: 0x219 ncmds: 120 sizeofcmds: 18421 flags: 0x1808522 reserved: 0x023LoadCommands:24 - cmd: [[LC_NAME]]25 cmdsize: 18426 PayloadBytes: [ 0x4, 0x0, 0x0, 0x0, 0x2A, 0x0, 0x0, 0x0, 0x0, 0x0,27 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,28 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,29 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,30 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,31 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,32 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,33 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,34 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,35 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,36 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,37 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