diff options
Diffstat (limited to 'llvm/test')
-rwxr-xr-x | llvm/test/Object/Inputs/corrupt-invalid-dynamic-table-offset.elf.x86-64 | bin | 0 -> 1688 bytes | |||
-rw-r--r-- | llvm/test/Object/corrupt.test | 14 |
2 files changed, 14 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/corrupt-invalid-dynamic-table-offset.elf.x86-64 b/llvm/test/Object/Inputs/corrupt-invalid-dynamic-table-offset.elf.x86-64 Binary files differnew file mode 100755 index 00000000000..d164d8243d5 --- /dev/null +++ b/llvm/test/Object/Inputs/corrupt-invalid-dynamic-table-offset.elf.x86-64 diff --git a/llvm/test/Object/corrupt.test b/llvm/test/Object/corrupt.test index 360e7c8775e..0d9aad378f8 100644 --- a/llvm/test/Object/corrupt.test +++ b/llvm/test/Object/corrupt.test @@ -56,3 +56,17 @@ 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 + + +RUN: not llvm-readobj -dyn-relocations \ +RUN: %p/Inputs/corrupt-invalid-dynamic-table-offset.elf.x86-64 2>&1 | \ +RUN: FileCheck --check-prefix=DYN-TABLE-OFFSET %s + +DYN-TABLE-OFFSET: Invalid data was encountered while parsing the file. + + +RUN: not llvm-readobj -dyn-relocations \ +RUN: %p/Inputs/corrupt-invalid-dynamic-table-too-large.elf.x86-64 2>&1 | \ +RUN: FileCheck --check-prefix=DYN-TABLE-TOO-LARGE %s + +DYN-TABLE-TOO-LARGE: Invalid data was encountered while parsing the file. |