Home
last modified time | relevance | path

Searched +full:fat +full:- +full:mach +full:- +full:o (Results 1 – 25 of 48) sorted by relevance

12

/llvm-project/llvm/test/ObjectYAML/MachO/
H A Dfat_macho_i386_x86_64.yaml1 ## This file contains test cases for generating Fat Mach-O binaries.
3 ## a) Test that yaml2obj emits Fat Mach-O binary and obj2yaml converts it
6 # RUN: yaml2obj --docnum=1 %s | obj2yaml | FileCheck %s
8 --- !fat-mach-o
13 - cputype: 0x00000007
18 - cputype: 0x01000007
24 - FileHeader:
32 - FileHeader:
44 #CHECK: --- !fat-mach-o
49 #CHECK: - cputype: 0x7
[all …]
/llvm-project/llvm/test/DebugInfo/
H A Ddwarfdump-macho-universal.test2 RUN: llvm-dwarfdump -v %S/Inputs/fat-test.o --debug-info | FileCheck %s
4 CHECK: fat-test.o(x86_64): file format Mach-O 64-bit x86-64
6 CHECK-NOT: {{NULL|DW_TAG}}
9 CHECK: fat-test.o(i386): file format Mach-O 32-bit i386
11 CHECK-NOT: {{NULL|DW_TAG}}
14 CHECK: fat-test.o(x86_64h): file format Mach-O 64-bit x86-64
16 CHECK-NOT: {{NULL|DW_TAG}}
/llvm-project/llvm/test/tools/dsymutil/ARM/
H A Dfat-dylib-update.test1 # REQUIRES: object-emission,system-darwin
2 # RUN: dsymutil -oso-prepend-path %p/.. %p/../Inputs/fat-test.arm.dylib -o %t.dSYM
3 # RUN: llvm-dwarfdump -a -v %t.dSYM/Contents/Resources/DWARF/fat-test.arm.dylib | FileCheck %s
4 # RUN: dsymutil -u %t.dSYM
5 # RUN: llvm-dwarfdump -a -v %t.dSYM/Contents/Resources/DWARF/fat-test.arm.dylib | FileCheck %s
6 # RUN: dsymutil -u %t.dSYM -o %t1.dSYM
7 # RUN: llvm-dwarfdump -a -v %t1.dSYM/Contents/Resources/DWARF/fat-test.arm.dylib | FileCheck %s
9 # RUN: dsymutil --linker parallel -oso-prepend-path %p/.. %p/../Inputs/fat-test.arm.dylib -o %t.dS…
10 # RUN: llvm-dwarfdump -a -v %t.dSYM/Contents/Resources/DWARF/fat-test.arm.dylib | FileCheck %s
11 # RUN: dsymutil --linker parallel -u %t.dSYM
[all …]
/llvm-project/llvm/test/tools/llvm-objdump/MachO/
H A Duniversal-arm64.test4 # RUN: yaml2obj %s -o %tarm.o
5 # RUN: llvm-objdump %tarm.o --universal-headers --macho | \
6 # RUN: FileCheck %s --match-full-lines
7 # RUN: llvm-otool -fv %tarm.o | FileCheck %s --match-full-lines
8 # RUN: llvm-objdump %tarm.o --universal-headers --macho --non-verbose | \
9 # RUN: FileCheck %s --match-full-lines --check-prefix=NONVERBOSE
10 # RUN: llvm-otool -f %tarm.o | FileCheck %s --match-full-lines --check-prefix=NONVERBOSE
12 # CHECK: Fat headers
13 # CHECK-NEXT: fat_magic FAT_MAGIC
14 # CHECK-NEXT: nfat_arch 3
[all …]
H A Ddisassemble-g-dsym.test1 # RUN: dsymutil -f -oso-prepend-path=%p/../../dsymutil/ %p/../../dsymutil/Inputs/basic.macho.x86_64…
2 # RUN: llvm-objdump -d -g --dsym=%t1.dSYM %p/../../dsymutil/Inputs/basic.macho.x86_64 >%t0
3 # RUN: llvm-objdump -dg --dsym=%t1.dSYM %p/../../dsymutil/Inputs/basic.macho.x86_64 >%t1
5 # RUN: FileCheck --input-file %t0 %s
9 # RUN: llvm-objdump --macho -d -g --dsym %p/Inputs/hello-macho-fat.dwarf %p/Inputs/hello-macho-fat
10 # RUN: llvm-objdump --macho -d -g --dsym %p/Inputs/hello-macho-fat.dwarf %p/Inputs/hello-macho-thin…
11 # RUN: llvm-objdump --macho -d -g --dsym %p/Inputs/hello-macho-thin.dwarf %p/Inputs/hello-macho-thi…
16 ## neither a Mach-O object nor Universal binary.
18 # RUN: yaml2obj --docnum=1 %s -o %t.a
19 # RUN: llvm-objdump --macho -d -g --dsym %t.a %p/../../dsymutil/Inputs/basic.macho.x86_64 2>&1 | \
[all …]
/llvm-project/lld/test/MachO/
H A Ddylib-stub.yaml9 ## taking a non-stub dylib and editing the appropriate fields.
12 # RUN: rm -rf %t; split-file %s %t
13 # RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/test.s -o %t/test.o
14 # RUN: yaml2obj %t/fat.dylib.yaml > %t/fat.dylib
15 # RUN: %lld -lSystem %t/test.o %t/fat.dylib -o %t/test
16 # RUN: llvm-objdump --macho --lazy-bind %t/test | FileCheck %s
19 #--- test.s
25 #--- fat.dylib.yaml
26 --- !fat-mach-o
31 - cputype: 0x01000007
[all …]
/llvm-project/llvm/test/tools/llvm-dwarfdump/X86/
H A Darchive.test1 RUN: llvm-dwarfdump --debug-info %S/../../dsymutil/Inputs/libfat-test.a \
3 CHECK: libfat-test.a(x86_64)(fat-test.o): file format Mach-O 64-bit x86-64
5 CHECK: libfat-test.a(i386)(fat-test.o): file format Mach-O 32-bit i386
8 RUN: llvm-dwarfdump --debug-info %S/../../dsymutil/Inputs/libfat-test.a \
9 RUN: --arch=i386 | FileCheck %s --check-prefix=I386
10 I386-NOT: 64-bit
11 I386: file format Mach-O 32-bit i386
12 I386-NOT: 64-bit
14 RUN: llvm-dwarfdump --debug-info %S/../../dsymutil/Inputs/libfat-test.a \
15 RUN: --arch=i386 --arch=x86_64 | FileCheck %s
[all …]
/llvm-project/llvm/test/tools/llvm-gsymutil/ARM_AArch64/
H A Dfat-macho-dwarf.yaml1 ## For mach-o files we might have a universal (fat) mach-o file which
9 # RUN: yaml2obj %s -o %t
10 # RUN: llvm-gsymutil --convert %t --arch armv7 -o %t.armv7.gsym 2>&1 | FileCheck %s --check-prefix=…
11 # RUN: llvm-gsymutil --convert %t --arch arm64 -o %t.arm64.gsym 2>&1 | FileCheck %s --check-prefix=…
12 # RUN: llvm-gsymutil --convert %t -o %t.gsym 2>&1 | FileCheck %s --check-prefix=FAT
15 # ARMV7-NEXT: Output file (armv7): {{.*\.yaml\.tmp\.armv7\.gsym}}
16 # ARMV7-NEXT: Loaded 1 functions from DWARF.
17 # ARMV7-NEXT: Loaded 1 functions from symbol table.
21 # ARM64-NEXT: Output file (arm64): {{.*\.yaml\.tmp\.arm64\.gsym}}
22 # ARM64-NEXT: Loaded 1 functions from DWARF.
[all …]
/llvm-project/llvm/docs/
H A DFatLTO.rst14 FatLTO objects are a special type of `fat object file
18 to use LTO or not to link-time, and has been a feature available in other
20 <https://gcc.gnu.org/onlinedocs/gccint/LTO-Overview.html>`_, for some time.
32 #) Run the pre-link (Thin)LTO pipeline on the current module.
33 #) Embed the pre-link bitcode in a special ``.llvm.lto`` section.
47 Bit-for-bit compatibility is not (and never was) a guarantee, and we reserve
49 the produced bitcode or object code to match their non-LTO counterparts
51 not be bit-for-bit the same.
56 ``ThinLTODefaultPipeline`` runs and the compiler can emit the fat object file.
62 -------
[all …]
/llvm-project/llvm/test/tools/llvm-lipo/
H A Darchs-universal-binary-arm.test1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-lipo %t -archs | FileCheck %s
5 --- !fat-mach-o
10 - cputype: 0x0000000C
15 - cputype: 0x0100000C
21 - !mach-o
30 - !mach-o
H A Darchs-universal-binary-x86.test1 # RUN: yaml2obj %s -o %t
2 # RUN: llvm-lipo %t -archs | FileCheck %s
5 --- !fat-mach-o
10 - cputype: 0x00000007
15 - cputype: 0x01000007
21 - !mach-o
30 - !mach-o
H A Darchs-universal-binary-unknown.test1 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-lipo %t -archs 2>&1 | FileCheck %s
6 --- !fat-mach-o
11 - cputype: 0x00000007
16 - cputype: 0x01000097
22 - !mach-o
31 - !mach-o
H A Dthin-executable-universal-binary.test2 # UNSUPPORTED: system-windows
3 # RUN: yaml2obj %s -o %t-universal.o
5 # RUN: chmod a-x %t-universal.o
6 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o
7 # RUN: test ! -x %t32.o
9 # RUN: chmod a+x %t-universal.o
10 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32-ex.o
11 # RUN: test -x %t32-ex.o
15 --- !fat-mach-o
20 - cputype: 0x00000007
[all …]
H A Dthin-universal-binary.test1 # RUN: yaml2obj %s -o %t
3 # RUN: not llvm-lipo %t -thin arm64_32 -output %t.out 2>&1 | FileCheck --check-prefix=ARCH_NOT_IN_F…
6 # RUN: not llvm-lipo %t -thin aarch101 -output %t.out 2>&1 | FileCheck --check-prefix=INVALID_ARCH …
9 # RUN: yaml2obj %p/Inputs/i386-x86_64-universal.yaml -o %t-universal.o
10 # RUN: llvm-lipo %t-universal.o -thin i386 -output %t32.o
11 # RUN: yaml2obj %p/Inputs/i386-slice.yaml -o %t-basic32.o
12 # RUN: cmp %t32.o %t-basic32.o
14 --- !fat-mach-o
19 - cputype: 0x00000007
24 - cputype: 0x01000007
[all …]
H A Dverify-arch-universal-binary.test1 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-lipo %t -verify_arch i386
4 # RUN: llvm-lipo %t -verify_arch i386 x86_64
6 # RUN: not llvm-lipo %t -verify_arch aarch64
7 # RUN: not llvm-lipo %t -verify_arch arm64
8 # RUN: yaml2obj %s | not llvm-lipo - -verify_arch aarch64 i386
9 # lipo does not support this (i.e. yaml2obj %s | not lipo -), included to test function with llvm-l…
12 --- !fat-mach-o
17 - cputype: 0x00000007
22 - cputype: 0x01000007
[all …]
/llvm-project/llvm/test/Object/
H A Dmacho-invalid.test1 // An odd Mach-O file, with just a mach header with all but the magic field
4 RUN: llvm-objdump --private-headers %p/Inputs/macho-invalid-zero-ncmds --macho \
5 RUN: | FileCheck -check-prefix ZERO-NCMDS %s
6 ZERO-NCMDS: MH_MAGIC_64 0 0 0x00 OBJECT 0 0 0x00000000
8 RUN: not llvm-objdump --macho --private-headers %p/Inputs/macho64-invalid-incomplete-load-command 2…
9 RUN: | FileCheck -check-prefix INCOMPLETE-LOADC %s
10 INCOMPLETE-LOADC: truncated or malformed object (load command 0 extends past the end all load comma…
12 RUN: not llvm-objdump --macho --private-headers %p/Inputs/macho64-invalid-incomplete-load-command.1…
13 RUN: | FileCheck -check-prefix INCOMPLETE-LOADC-1 %s
14 INCOMPLETE-LOADC-1: truncated or malformed object (load command 1 extends past the end all load com…
[all …]
/llvm-project/llvm/test/tools/llvm-libtool-darwin/
H A Duniversal-object-flattening.test3 # 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
[all …]
H A Duniversal-object-output.test2 ## llvm-libtool-darwin is given object files for multiple architectures.
4 ## Check that the subtypes of cputype CPU_TYPE_ARM are stored in a fat file:
5 # RUN: yaml2obj %s -o %t.armv6 -DTYPE=0xC -DSUBTYPE=0x6 -DSTRING=_armv6
6 # RUN: yaml2obj %s -o %t.armv7 -DTYPE=0xC -DSUBTYPE=0x9 -DSTRING=_armv7
8 # RUN: llvm-libtool-darwin -static -o %t.lib %t.armv6 %t.armv7
11 # RUN: llvm-lipo -info %t.lib | \
12 # RUN: FileCheck %s --check-prefix=ARCHS -DFILE=%t.lib
14 # ARCHS: Architectures in the fat file: [[FILE]] are: armv6 armv7
17 # RUN: llvm-libtool-darwin -static -o %t.lib %t.armv6 %t.armv6 %t.armv7
18 # RUN: llvm-lipo -info %t.lib | \
[all …]
/llvm-project/lldb/test/API/commands/target/basic/
H A Dbogus.yaml1 --- !fat-mach-o
6 - cputype: 0x0000000C
11 - cputype: 0x0000000C
16 - cputype: 0x0100000C
22 - !mach-o
33 - cmd: LC_SEGMENT
44 - cmd: LC_SYMTAB
50 - cmd: LC_VERSION_MIN_IPHONEOS
54 - cmd: LC_DATA_IN_CODE
60 - n_strx: 4
[all …]
/llvm-project/llvm/tools/llvm-lipo/
H A DLipoOpts.td3 def help : Flag<["-", "--"], "help">;
4 def h : Flag<["-"], "h">, Alias<help>;
6 def version : Flag<["-", "--"], "version">,
10 : MultiArg<["-", "--"], "segalign", 2>,
16 : MultiArg<["-", "--"], "arch", 2>,
22 : Option<["-", "--"], "verify_arch", KIND_REMAINING_ARGS>,
27 def archs : Option<["-", "--"], "archs", KIND_FLAG>,
31 def info : Option<["-", "--"], "info", KIND_FLAG>,
37 def thin : Option<["-", "--"], "thin", KIND_SEPARATE>,
40 "fat input file. Requires -output option">;
[all …]
/llvm-project/lld/test/MachO/invalid/
H A Dinvalid-fat-narch.s2 # RUN: yaml2obj %s -o %t.o
3 # RUN: not %lld -o /dev/null %t.o 2>&1 | \
4 # RUN: FileCheck %s -DFILE=%t.o
7 !fat-mach-o
H A Dinvalid-fat-offset.s2 # RUN: yaml2obj %s -o %t.o
3 # RUN: not %lld -o /dev/null %t.o 2>&1 | \
4 # RUN: FileCheck %s -DFILE=%t.o
7 !fat-mach-o
12 - cputype: 0x01000007
17 - cputype: 0x00000007
/llvm-project/llvm/test/tools/llvm-lipo/Inputs/
H A Di386-x86_64-universal.yaml1 --- !fat-mach-o
6 - cputype: 0x00000007
11 - cputype: 0x01000007
17 - !mach-o
27 - cmd: LC_SEGMENT
39 - sectname: __text
51 - sectname: __eh_frame
63 - cmd: LC_VERSION_MIN_MACOSX
67 - cmd: LC_SYMTAB
73 - cmd: LC_DYSYMTAB
[all …]
H A Darmv7_i386_non_default_alignment.yaml1 --- !fat-mach-o
6 - cputype: 0x0000000C
11 - cputype: 0x00000007
17 - !mach-o
27 - cmd: LC_SEGMENT
39 - sectname: __text
51 - sectname: __eh_frame
63 - cmd: LC_VERSION_MIN_MACOSX
67 - cmd: LC_SYMTAB
73 - cmd: LC_DYSYMTAB
[all …]
/llvm-project/llvm/test/Object/Inputs/
H A Dmacho-invalid-fat-arch-size.yaml1 --- !fat-mach-o
6 - cputype: 0x00000007

12