diff --git a/lld/test/elf2/Inputs/invalid-shstrndx.so b/lld/test/elf2/Inputs/invalid-shstrndx.so new file mode 100755 index 000000000000..dc332b9292ea Binary files /dev/null and b/lld/test/elf2/Inputs/invalid-shstrndx.so differ diff --git a/lld/test/elf2/invalid-elf.test b/lld/test/elf2/invalid-elf.test index 0085b2797a93..ba698cb9eac1 100644 --- a/lld/test/elf2/invalid-elf.test +++ b/lld/test/elf2/invalid-elf.test @@ -17,3 +17,6 @@ INVALID-BINDING: unexpected binding RUN: not lld -flavor gnu2 %p/Inputs/invalid-section-index.elf -o %t2 2>&1 | \ RUN: FileCheck --check-prefix=INVALID-SECTION-INDEX %s INVALID-SECTION-INDEX: Invalid section index + +RUN: not lld -flavor gnu2 %p/Inputs/invalid-shstrndx.so -o %t2 2>&1 | \ +RUN: FileCheck --check-prefix=INVALID-SECTION-INDEX %s