blob: 41c7a9ff6c39933d78e408a45b3b5f70eb94d57d [file] [log] [blame]
Michael J. Spencer126973b2013-08-08 22:27:13 +00001// Section name offset overflows section name string table.
2RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -sections \
3RUN: 2>&1 | FileCheck --check-prefix=SECNAME %s
4
5// Section data offset past end of file.
6RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -sections -section-data \
7RUN: 2>&1 | FileCheck --check-prefix=SECDATA %s
8
9// Symbol name offset overflows string table.
10RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -symbols \
11RUN: 2>&1 | FileCheck --check-prefix=SYMNAME %s
12
13// Version index in .gnu.version overflows the version map.
14RUN: not llvm-readobj %p/Inputs/corrupt-version.elf-x86_64 -dt \
15RUN: 2>&1 | FileCheck --check-prefix=VER %s
16
17SECNAME: Error reading file: Invalid data was encountered while parsing the file.
18
19SECDATA: Error reading file: Invalid data was encountered while parsing the file.
Michael J. Spencer126973b2013-08-08 22:27:13 +000020
21SYMNAME: Error reading file: Invalid data was encountered while parsing the file.
22
23VER: Error reading file: Invalid data was encountered while parsing the file.