45 lines
2.0 KiB
Plaintext
45 lines
2.0 KiB
Plaintext
## This test verifies that the load commands LC_THREAD/LC_UNIXTHREAD
|
|
## are copied correctly.
|
|
|
|
# RUN: yaml2obj -D LC_NAME=LC_THREAD %s -o %t.lc_thread.exe
|
|
# RUN: llvm-objcopy %t.lc_thread.exe %t.lc_thread.exe.copy
|
|
# RUN: cmp %t.lc_thread.exe %t.lc_thread.exe.copy
|
|
|
|
# RUN: yaml2obj -D LC_NAME=LC_UNIXTHREAD %s -o %t.lc_unixthread.exe
|
|
# RUN: llvm-objcopy %t.lc_unixthread.exe %t.lc_unixthread.exe.copy
|
|
# RUN: cmp %t.lc_unixthread.exe %t.lc_unixthread.exe.copy
|
|
|
|
--- !mach-o
|
|
IsLittleEndian: true
|
|
FileHeader:
|
|
magic: 0xFEEDFACF
|
|
cputype: 0x1000007
|
|
cpusubtype: 0x3
|
|
filetype: 0x2
|
|
ncmds: 1
|
|
sizeofcmds: 184
|
|
flags: 0x18085
|
|
reserved: 0x0
|
|
LoadCommands:
|
|
- cmd: [[LC_NAME]]
|
|
cmdsize: 184
|
|
PayloadBytes: [ 0x4, 0x0, 0x0, 0x0, 0x2A, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0,
|
|
0x0, 0x0, 0x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