summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/corrupt.test
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/Object/corrupt.test')
-rw-r--r--llvm/test/Object/corrupt.test7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/test/Object/corrupt.test b/llvm/test/Object/corrupt.test
index 0a655704610..2181c7e8907 100644
--- a/llvm/test/Object/corrupt.test
+++ b/llvm/test/Object/corrupt.test
@@ -24,3 +24,10 @@ RUN: not llvm-readobj %p/Inputs/corrupt-version.elf-x86_64 -dt \
RUN: 2>&1 | FileCheck --check-prefix=VER %s
VER: Error reading file: Invalid data was encountered while parsing the file.
+
+
+// The file is missing the dynamic string table but has references to it.
+RUN: not llvm-readobj -dynamic-table %p/Inputs/corrupt-invalid-strtab.elf.x86-64 \
+RUN: 2>&1 | FileCheck --check-prefix=STRTAB %s
+
+STRTAB: Invalid dynamic string table reference
OpenPOWER on IntegriCloud