blob: 40cf9cc7eab968e47e088a65adfd35972111a012 [file] [log] [blame]
Shoaib Meenai64423172019-06-21 21:59:01 +00001# Executable testing is not supported on Windows, since all files are considered executable
Douglas Yung3df71e02019-06-22 01:14:29 +00002# UNSUPPORTED: system-windows
Fangrui Song55c81d42020-01-21 17:02:25 -08003# RUN: yaml2obj %s -o %t-universal.o
Shoaib Meenai64423172019-06-21 21:59:01 +00004
Bob Haarman6baac182019-07-26 18:44:06 +00005# RUN: chmod a-x %t-universal.o
Shoaib Meenai64423172019-06-21 21:59:01 +00006# RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o
Shoaib Meenaic9e3c832019-07-15 22:44:08 +00007# RUN: test ! -x %t32.o
Shoaib Meenai64423172019-06-21 21:59:01 +00008
Bob Haarman6baac182019-07-26 18:44:06 +00009# RUN: chmod a+x %t-universal.o
Shoaib Meenai64423172019-06-21 21:59:01 +000010# RUN: llvm-lipo %t-universal.o -thin i386 -output %t32-ex.o
11# RUN: test -x %t32-ex.o
12
13
14
15--- !fat-mach-o
16FatHeader:
17 magic: 0xCAFEBABE
18 nfat_arch: 2
19FatArchs:
20 - cputype: 0x00000007
21 cpusubtype: 0x00000003
22 offset: 0x0000000000001000
23 size: 28
24 align: 12
25 - cputype: 0x01000007
26 cpusubtype: 0x00000003
27 offset: 0x0000000000002000
28 size: 32
29 align: 12
30Slices:
31 - !mach-o
32 FileHeader:
33 magic: 0xFEEDFACE
34 cputype: 0x00000007
35 cpusubtype: 0x00000003
36 filetype: 0x00000001
37 ncmds: 0
38 sizeofcmds: 0
39 flags: 0x00002000
40 - !mach-o
41 FileHeader:
42 magic: 0xFEEDFACF
43 cputype: 0x01000007
44 cpusubtype: 0x00000003
45 filetype: 0x00000001
46 ncmds: 0
47 sizeofcmds: 0
48 flags: 0x00002000
49 reserved: 0x00000000
50...