summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Object')
-rwxr-xr-xllvm/test/Object/Inputs/corrupt-invalid-dynamic-table-size.elf.x86-64bin0 -> 1736 bytes
-rw-r--r--llvm/test/Object/corrupt.test6
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/corrupt-invalid-dynamic-table-size.elf.x86-64 b/llvm/test/Object/Inputs/corrupt-invalid-dynamic-table-size.elf.x86-64
new file mode 100755
index 00000000000..ee29a4162e3
--- /dev/null
+++ b/llvm/test/Object/Inputs/corrupt-invalid-dynamic-table-size.elf.x86-64
Binary files differ
diff --git a/llvm/test/Object/corrupt.test b/llvm/test/Object/corrupt.test
index 843cc247523..05a8d0fab5c 100644
--- a/llvm/test/Object/corrupt.test
+++ b/llvm/test/Object/corrupt.test
@@ -50,3 +50,9 @@ RUN: %p/Inputs/corrupt-invalid-relocation-size.elf.x86-64 2>&1 | \
RUN: FileCheck --check-prefix=RELOC %s
RELOC: Invalid relocation entry size
+
+RUN: not llvm-readobj -dyn-relocations \
+RUN: %p/Inputs/corrupt-invalid-dynamic-table-size.elf.x86-64 2>&1 | \
+RUN: FileCheck --check-prefix=DYN-TABLE-SIZE %s
+
+DYN-TABLE-SIZE: Invalid dynamic table size
OpenPOWER on IntegriCloud