• Home
  • Raw
  • Download

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

1 // 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 2…
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…
16 RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-too-small-load-command 2>&1 \
17 RUN: | FileCheck -check-prefix SMALL-LOADC-SIZE %s
18 RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho64-invalid-too-small-load-command 2>&1…
19 RUN: | FileCheck -check-prefix SMALL-LOADC-SIZE %s
20 SMALL-LOADC-SIZE: truncated or malformed object (load commands extend past the end of the file)
22 RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho64-invalid-too-small-load-command.1 2>…
23 RUN: | FileCheck -check-prefix SMALL-LOADC-SIZE-1 %s
24 SMALL-LOADC-SIZE-1: truncated or malformed object (load command 1 with size less than 8 bytes)
26 RUN: not llvm-objdump -private-headers %p/Inputs/macho-invalid-too-small-segment-load-command 2>&1 \
27 RUN: | FileCheck -check-prefix MULTIPLE-NOT-4 %s
28 MULTIPLE-NOT-4: truncated or malformed object (load command 0 cmdsize not a multiple of 4)
30 RUN: not llvm-objdump -private-headers %p/Inputs/macho-invalid-too-small-segment-load-command.1 2>&…
31 RUN: | FileCheck -check-prefix SMALL-SEGLOADC-SIZE %s
32 SMALL-SEGLOADC-SIZE: truncated or malformed object (load command 0 LC_SEGMENT cmdsize too small)
34 RUN: not llvm-objdump -private-headers %p/Inputs/macho64-invalid-too-small-segment-load-command 2>&…
35 RUN: | FileCheck -check-prefix MULTIPLE-NOT-8 %s
36 MULTIPLE-NOT-8: truncated or malformed object (load command 0 cmdsize not a multiple of 8)
38 RUN: not llvm-objdump -private-headers %p/Inputs/macho-invalid-no-size-for-sections 2>&1 \
39 RUN: | FileCheck -check-prefix TOO-MANY-SECTS %s
40 TOO-MANY-SECTS: truncated or malformed object (load command 0 inconsistent cmdsize in LC_SEGMENT fo…
41 RUN: not llvm-objdump -private-headers %p/Inputs/macho64-invalid-no-size-for-sections 2>&1 \
42 RUN: | FileCheck -check-prefix TOO-MANY-SECTS-64 %s
43 TOO-MANY-SECTS-64: truncated or malformed object (load command 0 inconsistent cmdsize in LC_SEGMENT…
45 RUN: not llvm-objdump -macho -t %p/Inputs/macho-invalid-bad-symbol-index 2>&1 \
46 RUN: | FileCheck -check-prefix BAD-SYMBOL %s
47 BAD-SYMBOL: truncated or malformed object (ilocalsym plus nlocalsym in LC_DYSYMTAB load command ext…
48 RUN: llvm-objdump -macho -t %p/Inputs/macho-valid-0-nsyms 2>&1 \
49 RUN: | FileCheck -check-prefix ZERO-NSYMS %s
50 ZERO-NSYMS: SYMBOL TABLE
52 RUN: not llvm-objdump -t %p/Inputs/macho-invalid-symbol-name-past-eof 2>&1 \
53 RUN: | FileCheck -check-prefix NAME-PAST-EOF %s
54 NAME-PAST-EOF: truncated or malformed object (bad string index: 4261412866 for symbol at index 0)
55 RUN: llvm-nm -pa %p/Inputs/macho-invalid-symbol-name-past-eof 2>&1 \
56 RUN: | FileCheck -check-prefix NAME-PAST-EOF-nm-pa %s
57 NAME-PAST-EOF-nm-pa: 0000000000000000 - 00 0000 SO bad string index
58 RUN: llvm-nm -pax %p/Inputs/macho-invalid-symbol-name-past-eof 2>&1 \
59 RUN: | FileCheck -check-prefix NAME-PAST-EOF-nm-pax %s
60 NAME-PAST-EOF-nm-pax: 0000000000000000 64 00 0000 fe000002 bad string index
62 RUN: not llvm-objdump -t %p/Inputs/macho-bad-archive1.a 2>&1 \
63 RUN: | FileCheck -check-prefix NAME-PAST-EOF-ARCHIVE %s
64 NAME-PAST-EOF-ARCHIVE: macho-bad-archive1.a(macho-invalid-symbol-name-past-eof) truncated or malfor…
66 RUN: not llvm-objdump -macho -arch all -t %p/Inputs/macho-universal-bad1.x86_64.i386 2>&1 \
67 RUN: | FileCheck -check-prefix NAME-PAST-EOF-FAT %s
68 NAME-PAST-EOF-FAT: macho-universal-bad1.x86_64.i386 (for architecture x86_64) truncated or malform…
69 RUN: not llvm-objdump -macho -arch all -t %p/Inputs/macho-universal-archive-bad1.x86_64.i386 2>&1 \
70 RUN: | FileCheck -check-prefix NAME-PAST-EOF-FAT-ARCHIVE %s
71 NAME-PAST-EOF-FAT-ARCHIVE: macho-universal-archive-bad1.x86_64.i386(macho-invalid-symbol-name-past-
73 RUN: llvm-nm %p/Inputs/macho-invalid-section-index-getSectionRawName 2>&1 \
74 RUN: | FileCheck -check-prefix INVALID-SECTION-IDX-SYMBOL-SEC %s
75 INVALID-SECTION-IDX-SYMBOL-SEC: 0000000100000000 S __mh_execute_header
76 RUN: llvm-nm -m %p/Inputs/macho-invalid-section-index-getSectionRawName 2>&1 \
77 RUN: | FileCheck -check-prefix INVALID-SECTION-IDX-SYMBOL-SEC-m %s
78 INVALID-SECTION-IDX-SYMBOL-SEC-m: 0000000100000000 (?,?) [referenced dynamically] external __mh_exe…
79 RUN: llvm-nm -pax %p/Inputs/macho-invalid-section-index-getSectionRawName 2>&1 \
80 RUN: | FileCheck -check-prefix INVALID-SECTION-IDX-SYMBOL-SEC-pax %s
81 INVALID-SECTION-IDX-SYMBOL-SEC-pax: 0000000100000000 0f 42 0010 00000065 __mh_execute_header
82 RUN: not llvm-objdump -t %p/Inputs/macho-invalid-section-index-getSectionRawName 2>&1 \
83 RUN: | FileCheck -check-prefix INVALID-SECTION-IDX-SYMBOL-SEC-objdump %s
84 INVALID-SECTION-IDX-SYMBOL-SEC-objdump: truncated or malformed object (bad section index: 66 for sy…
86 RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-header 2>&1 | FileCheck -chec…
87 INVALID-HEADER: The file was not recognized as a valid object file
89 …t llvm-objdump -macho -private-headers %p/Inputs/macho64-invalid-incomplete-segment-load-command 2…
90 INCOMPLETE-SEGMENT-LOADC: truncated or malformed object (load commands extend past the end of the f…
92 RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-bad-archive2.a 2>&1 | FileCheck -chec…
93 INCOMPLETE-SEGMENT-LOADC-ARCHIVE: macho-bad-archive2.a(macho64-invalid-incomplete-segment-load-comm…
95 …llvm-objdump -macho -private-headers -arch all %p/Inputs/macho-universal-bad2.x86_64.i386 2>&1 | F…
96 INCOMPLETE-SEGMENT-LOADC-FAT: macho-universal-bad2.x86_64.i386 (for architecture x86_64) truncated …
98-objdump -macho -private-headers -arch all %p/Inputs/macho-universal-archive-bad2.x86_64.i386 2>&1…
99 INCOMPLETE-SEGMENT-LOADC-FAT-ARCHIVE: macho-universal-archive-bad2.x86_64.i386(macho64-invalid-inco…
101 RUN: not llvm-objdump -macho -universal-headers %p/Inputs/macho-invalid-fat 2>&1 | FileCheck -check
102 INVALID-FAT: truncated or malformed fat file (fat_arch_64 structs would extend past the end of the …
104 …UN: not llvm-objdump -macho -private-headers -arch all %p/Inputs/macho-invalid-fat.obj.elf-x86_64 …
105 INVALID-FAT-ELF: Mach-O universal file: {{.*}}/macho-invalid-fat.obj.elf-x86_64 for architecture x8…