summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Object')
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-bind-overlapbin0 -> 240 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-codesig-overlapbin0 -> 80 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-export-overlapbin0 -> 240 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-extrefsyms-overlapbin0 -> 400 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-extreloff-overlapbin0 -> 476 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-hints-overlapbin0 -> 140 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-indirectsyms-overlapbin0 -> 476 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-lazy_bind-overlapbin0 -> 240 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-locreloff-overlapbin0 -> 484 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-modtab-overlapbin0 -> 400 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-rebase-overlapbin0 -> 240 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-reloc-overlapbin0 -> 244 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-section-overlapbin0 -> 236 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-toc-overlapbin0 -> 400 bytes
-rw-r--r--llvm/test/Object/Inputs/macho-invalid-weak_bind-overlapbin0 -> 240 bytes
-rw-r--r--llvm/test/Object/macho-invalid.test45
16 files changed, 45 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/macho-invalid-bind-overlap b/llvm/test/Object/Inputs/macho-invalid-bind-overlap
new file mode 100644
index 00000000000..206315c3b5b
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-bind-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-codesig-overlap b/llvm/test/Object/Inputs/macho-invalid-codesig-overlap
new file mode 100644
index 00000000000..a989bad05d1
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-codesig-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-export-overlap b/llvm/test/Object/Inputs/macho-invalid-export-overlap
new file mode 100644
index 00000000000..293191836c1
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-export-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-extrefsyms-overlap b/llvm/test/Object/Inputs/macho-invalid-extrefsyms-overlap
new file mode 100644
index 00000000000..5778f67a226
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-extrefsyms-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-extreloff-overlap b/llvm/test/Object/Inputs/macho-invalid-extreloff-overlap
new file mode 100644
index 00000000000..2226556183a
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-extreloff-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-hints-overlap b/llvm/test/Object/Inputs/macho-invalid-hints-overlap
new file mode 100644
index 00000000000..87a62b825f9
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-hints-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-indirectsyms-overlap b/llvm/test/Object/Inputs/macho-invalid-indirectsyms-overlap
new file mode 100644
index 00000000000..f9748640d35
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-indirectsyms-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-lazy_bind-overlap b/llvm/test/Object/Inputs/macho-invalid-lazy_bind-overlap
new file mode 100644
index 00000000000..9905305428d
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-lazy_bind-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-locreloff-overlap b/llvm/test/Object/Inputs/macho-invalid-locreloff-overlap
new file mode 100644
index 00000000000..be25c7938f0
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-locreloff-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-modtab-overlap b/llvm/test/Object/Inputs/macho-invalid-modtab-overlap
new file mode 100644
index 00000000000..4ee023c86ab
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-modtab-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-rebase-overlap b/llvm/test/Object/Inputs/macho-invalid-rebase-overlap
new file mode 100644
index 00000000000..267afd65b01
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-rebase-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-reloc-overlap b/llvm/test/Object/Inputs/macho-invalid-reloc-overlap
new file mode 100644
index 00000000000..98fe3224cc8
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-reloc-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-section-overlap b/llvm/test/Object/Inputs/macho-invalid-section-overlap
new file mode 100644
index 00000000000..ab3f4fb3d8e
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-section-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-toc-overlap b/llvm/test/Object/Inputs/macho-invalid-toc-overlap
new file mode 100644
index 00000000000..a3afa584255
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-toc-overlap
Binary files differ
diff --git a/llvm/test/Object/Inputs/macho-invalid-weak_bind-overlap b/llvm/test/Object/Inputs/macho-invalid-weak_bind-overlap
new file mode 100644
index 00000000000..ce1f3e0ac04
--- /dev/null
+++ b/llvm/test/Object/Inputs/macho-invalid-weak_bind-overlap
Binary files differ
diff --git a/llvm/test/Object/macho-invalid.test b/llvm/test/Object/macho-invalid.test
index 105bfb075f3..b193ebb8c41 100644
--- a/llvm/test/Object/macho-invalid.test
+++ b/llvm/test/Object/macho-invalid.test
@@ -439,3 +439,48 @@ INVALID-SYMTAB-OVERLAP: macho-invalid-symtab-overlap': truncated or malformed ob
RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-strtab-overlap 2>&1 | FileCheck -check-prefix INVALID-STRTAB-OVERLAP %s
INVALID-STRTAB-OVERLAP: macho-invalid-strtab-overlap': truncated or malformed object (string table at offset 60 with a size of 16, overlaps symbol table at offset 52 with a size of 12)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-section-overlap 2>&1 | FileCheck -check-prefix INVALID-SECTION-OVERLAP %s
+INVALID-SECTION-OVERLAP: macho-invalid-section-overlap': truncated or malformed object (symbol table at offset 208 with a size of 12, overlaps section contents at offset 184 with a size of 32)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-reloc-overlap 2>&1 | FileCheck -check-prefix INVALID-RELOC-OVERLAP %s
+INVALID-RELOC-OVERLAP: macho-invalid-reloc-overlap': truncated or malformed object (section relocation entries at offset 204 with a size of 8, overlaps section contents at offset 176 with a size of 32)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-toc-overlap 2>&1 | FileCheck -check-prefix INVALID-TOC-OVERLAP %s
+INVALID-TOC-OVERLAP: macho-invalid-toc-overlap': truncated or malformed object (table of contents at offset 292 with a size of 8, overlaps section relocation entries at offset 288 with a size of 8)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-modtab-overlap 2>&1 | FileCheck -check-prefix INVALID-MODTAB-OVERLAP %s
+INVALID-MODTAB-OVERLAP: macho-invalid-modtab-overlap': truncated or malformed object (module table at offset 300 with a size of 52, overlaps table of contents at offset 296 with a size of 8)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-extrefsyms-overlap 2>&1 | FileCheck -check-prefix INVALID-EXTREFSYMS-OVERLAP %s
+INVALID-EXTREFSYMS-OVERLAP: macho-invalid-extrefsyms-overlap': truncated or malformed object (reference table at offset 352 with a size of 4, overlaps module table at offset 304 with a size of 52)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-indirectsyms-overlap 2>&1 | FileCheck -check-prefix INVALID-INDIRECTSYMS-OVERLAP %s
+INVALID-INDIRECTSYMS-OVERLAP: macho-invalid-indirectsyms-overlap': truncated or malformed object (indirect table at offset 364 with a size of 4, overlaps section contents at offset 364 with a size of 4)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-extreloff-overlap 2>&1 | FileCheck -check-prefix INVALID-EXTRELOFF-OVERLAP %s
+INVALID-EXTRELOFF-OVERLAP: macho-invalid-extreloff-overlap': truncated or malformed object (external relocation table at offset 424 with a size of 8, overlaps reference table at offset 424 with a size of 4)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-locreloff-overlap 2>&1 | FileCheck -check-prefix INVALID-LOCRELOFF-OVERLAP %s
+INVALID-LOCRELOFF-OVERLAP: macho-invalid-locreloff-overlap': truncated or malformed object (local relocation table at offset 432 with a size of 8, overlaps external relocation table at offset 428 with a size of 8)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-hints-overlap 2>&1 | FileCheck -check-prefix INVALID-HINTS-OVERLAP %s
+INVALID-HINTS-OVERLAP: macho-invalid-hints-overlap': truncated or malformed object (two level hints at offset 104 with a size of 4, overlaps Mach-O headers at offset 0 with a size of 108)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-codesig-overlap 2>&1 | FileCheck -check-prefix INVALID-CODESIG-OVERLAP %s
+INVALID-CODESIG-OVERLAP: macho-invalid-codesig-overlap': truncated or malformed object (code signature data at offset 40 with a size of 32, overlaps Mach-O headers at offset 0 with a size of 48)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-rebase-overlap 2>&1 | FileCheck -check-prefix INVALID-REBASE-OVERLAP %s
+INVALID-REBASE-OVERLAP: macho-invalid-rebase-overlap': truncated or malformed object (dyld rebase info at offset 72 with a size of 32, overlaps Mach-O headers at offset 0 with a size of 80)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-bind-overlap 2>&1 | FileCheck -check-prefix INVALID-BIND-OVERLAP %s
+INVALID-BIND-OVERLAP: macho-invalid-bind-overlap': truncated or malformed object (dyld bind info at offset 104 with a size of 32, overlaps dyld rebase info at offset 80 with a size of 32)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-weak_bind-overlap 2>&1 | FileCheck -check-prefix INVALID-WEAK_BIND-OVERLAP %s
+INVALID-WEAK_BIND-OVERLAP: macho-invalid-weak_bind-overlap': truncated or malformed object (dyld weak bind info at offset 136 with a size of 32, overlaps dyld bind info at offset 112 with a size of 32)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-lazy_bind-overlap 2>&1 | FileCheck -check-prefix INVALID-LAZY_BIND-OVERLAP %s
+INVALID-LAZY_BIND-OVERLAP: macho-invalid-lazy_bind-overlap': truncated or malformed object (dyld lazy bind info at offset 168 with a size of 32, overlaps dyld weak bind info at offset 144 with a size of 32)
+
+RUN: not llvm-objdump -macho -private-headers %p/Inputs/macho-invalid-export-overlap 2>&1 | FileCheck -check-prefix INVALID-EXPORT-OVERLAP %s
+INVALID-EXPORT-OVERLAP: macho-invalid-export-overlap': truncated or malformed object (dyld export info at offset 200 with a size of 32, overlaps dyld lazy bind info at offset 176 with a size of 32)
OpenPOWER on IntegriCloud