Lines Matching +full:fat +full:- +full:mach +full:- +full:o

3 # RUN: yaml2obj %s -o %t-universal.o
4 # RUN: yaml2obj %S/Inputs/input1.yaml -o %t-input1.o
5 # RUN: yaml2obj %S/Inputs/input2.yaml -o %t-input2.o
7 # RUN: llvm-libtool-darwin -static -o %t.lib %t-universal.o -arch_only arm64
10 # RUN: llvm-ar t %t.lib | \
11 # RUN: FileCheck %s --check-prefix=CHECK-NAMES --implicit-check-not={{.}} -DPREFIX=%basename_t.tmp
13 # CHECK-NAMES: [[PREFIX]]-universal.o
16 # RUN: llvm-nm --print-armap %t.lib | \
17 # RUN: FileCheck %s --check-prefix=CHECK-SYMBOLS -DPREFIX=%basename_t.tmp --match-full-lines
19 # CHECK-SYMBOLS: Archive map
20 # CHECK-SYMBOLS-NEXT: _arm64 in [[PREFIX]]-universal.o
21 # CHECK-SYMBOLS-EMPTY:
24 # RUN: llvm-objdump --macho --archive-headers %t.lib | \
25 # RUN: FileCheck %s --check-prefix=FORMAT -DPREFIX=%basename_t.tmp -DARCHIVE=%t.lib
28 # FORMAT-NEXT: __.SYMDEF
29 # FORMAT-NEXT: [[PREFIX]]-universal.o
30 # FORMAT-NOT: {{.}}
33 # RUN: llvm-libtool-darwin -static -o %t.lib %t-universal.o %t-input1.o -arch_only x86_64
34 # RUN: llvm-ar t %t.lib | \
35 # RUN: FileCheck %s --check-prefix=BOTH-NAMES --implicit-check-not={{.}} -DPREFIX=%basename_t.tmp
36 # RUN: llvm-nm --print-armap %t.lib | \
37 # RUN: FileCheck %s --check-prefix=BOTH-SYMBOLS -DPREFIX=%basename_t.tmp --match-full-lines
39 # BOTH-NAMES: [[PREFIX]]-universal.o
40 # BOTH-NAMES-NEXT: [[PREFIX]]-input1.o
42 # BOTH-SYMBOLS: Archive map
43 # BOTH-SYMBOLS-NEXT: _x86_64 in [[PREFIX]]-universal.o
44 # BOTH-SYMBOLS-NEXT: _symbol1 in [[PREFIX]]-input1.o
45 # BOTH-SYMBOLS-EMPTY:
48 # RUN: llvm-libtool-darwin -static -o %t.lib %t-universal.o %t-input1.o -arch_only arm64
49 # RUN: llvm-ar t %t.lib | \
50 # RUN: FileCheck %s --check-prefix=CHECK-NAMES --implicit-check-not={{.}} -DPREFIX=%basename_t.tmp
51 # RUN: llvm-nm --print-armap %t.lib | \
52 # RUN: FileCheck %s --check-prefix=CHECK-SYMBOLS -DPREFIX=%basename_t.tmp --match-full-lines
55 # RUN: rm -f %t.ar
56 # RUN: llvm-ar cr %t.ar %t-input1.o %t-input2.o
57 # RUN: llvm-lipo %t.ar -create -output %t-fat-with-archive.o
58 # RUN: llvm-libtool-darwin -static -o %t.lib %t-fat-with-archive.o -arch_only x86_64
59 # RUN: llvm-ar t %t.lib | \
60 # RUN: FileCheck %s --check-prefix=ARCHIVE-NAMES --implicit-check-not={{.}} -DPREFIX=%basename_t.…
61 # RUN: llvm-nm --print-armap %t.lib | \
62 # RUN: FileCheck %s --check-prefix=ARCHIVE-SYMBOLS -DPREFIX=%basename_t.tmp --match-full-lines
64 # ARCHIVE-NAMES: [[PREFIX]]-input1.o
65 # ARCHIVE-NAMES-NEXT: [[PREFIX]]-input2.o
67 # ARCHIVE-SYMBOLS: Archive map
68 # ARCHIVE-SYMBOLS-NEXT: _symbol1 in [[PREFIX]]-input1.o
69 # ARCHIVE-SYMBOLS-NEXT: _symbol2 in [[PREFIX]]-input2.o
70 # ARCHIVE-SYMBOLS-EMPTY:
73 # RUN: llvm-libtool-darwin -static -o %t.lib %t-universal.o -arch_only arm64 -arch_only x86_64
74 # RUN: llvm-ar t %t.lib | \
75 # RUN: FileCheck %s --check-prefix=DOUBLE-NAMES --implicit-check-not={{.}} -DPREFIX=%basename_t.t…
76 # RUN: llvm-nm --print-armap %t.lib | \
77 # RUN: FileCheck %s --check-prefix=DOUBLE-SYMBOLS -DPREFIX=%basename_t.tmp --match-full-lines
79 # DOUBLE-NAMES: [[PREFIX]]-universal.o
81 # DOUBLE-SYMBOLS: Archive map
82 # DOUBLE-SYMBOLS-NEXT: _x86_64 in [[PREFIX]]-universal.o
83 # DOUBLE-SYMBOLS-EMPTY:
86 # RUN: not llvm-libtool-darwin -static -o %t.lib %t-universal.o -arch_only arch101 2>&1 | \
87 # RUN: FileCheck %s --check-prefix=INVALID-ARCH
89 # INVALID-ARCH: invalid architecture 'arch101': valid architecture names are
92 # RUN: not llvm-libtool-darwin -static -o %t.lib %t-universal.o -arch_only "" 2>&1 | \
93 # RUN: FileCheck %s --check-prefix=EMPTY-ARCH
95 # EMPTY-ARCH: invalid architecture '': valid architecture names are
98 # RUN: not llvm-libtool-darwin -static -o %t.lib %t-universal.o -arch_only ppc 2>&1 | \
99 # RUN: FileCheck %s --check-prefix=MISSING-ARCH
101 # MISSING-ARCH: error: no library created (no object files in input files matching -arch_only ppc)
104 # RUN: not llvm-libtool-darwin -static -o %t.lib %t-universal.o -arch_only 2>&1 | \
105 # RUN: FileCheck %s --check-prefix=REQUIRE-ARCH
107 # REQUIRE-ARCH: -arch_only: missing argument
109 ## x86_64-arm64-universal.yaml
110 --- !fat-mach-o
115 - cputype: 0x01000007
120 - cputype: 0x0100000C
126 - !mach-o
137 - cmd: LC_SEGMENT_64
149 - sectname: __text
162 - cmd: LC_SYMTAB
170 - n_strx: 1
176 - ''
177 - _x86_64
178 - ''
179 - !mach-o
190 - cmd: LC_SEGMENT_64
202 - sectname: __text
215 - cmd: LC_SYMTAB
223 - n_strx: 7
228 - n_strx: 1
234 - ''
235 - _arm64
236 - ltmp0
237 - ''
238 - ''
239 - ''