From 4641077ccdd0898d763a8ff1362b9c4fe8f8466e Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 30 Jun 2015 18:23:07 +0000 Subject: [PATCH] Add a test of an elf file with an invalid section index. We were already checking, but were missing a test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241094 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Object/Inputs/invalid-section-index.elf | Bin 0 -> 536 bytes test/Object/invalid.test | 4 ++++ 2 files changed, 4 insertions(+) create mode 100644 test/Object/Inputs/invalid-section-index.elf diff --git a/test/Object/Inputs/invalid-section-index.elf b/test/Object/Inputs/invalid-section-index.elf new file mode 100644 index 0000000000000000000000000000000000000000..a019d8a5479ef136fa1d4dfe4df1f3b62cb3aff5 GIT binary patch literal 536 zcmb<-^>JfjWMpQ50!9Wq21XbMiJpPPb^x;-7}&6?geX)1QUVN25Dqe_SCU#$!l0K_ zT+EMEWh)_xftcui2Ju0d4J3&K9FW+^ zOcrDgkSznmApPiWZ~%&71L*qMfr>bQm|XoLK)qN(pTPkr4gv-cih&&1 | FileCheck --check-prefix=INVALID-SYM-SIZE %s RUN: not llvm-readobj --dyn-symbols %p/Inputs/invalid-sh_entsize.elf 2>&1 | FileCheck --check-prefix=INVALID-SYM-SIZE %s INVALID-SYM-SIZE: Invalid symbol size + +RUN: not llvm-readobj -t %p/Inputs/invalid-section-index.elf 2>&1 | FileCheck --check-prefix=INVALID-SECTION-INDEX %s + +INVALID-SECTION-INDEX: Invalid section index! -- 2.34.1