mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-25 00:29:20 +00:00
We now use a simple pointer and have range loops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242669 91177308-0d34-0410-b5e6-96231b3b80d8
40 lines
1.4 KiB
Plaintext
40 lines
1.4 KiB
Plaintext
// Section name offset overflows section name string table.
|
|
RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -sections \
|
|
RUN: 2>&1 | FileCheck --check-prefix=SECNAME %s
|
|
|
|
SECNAME: Error reading file: Invalid data was encountered while parsing the file.
|
|
|
|
|
|
// Section data offset past end of file.
|
|
RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -sections -section-data \
|
|
RUN: 2>&1 | FileCheck --check-prefix=SECDATA %s
|
|
|
|
SECDATA: Error reading file: Invalid data was encountered while parsing the file.
|
|
|
|
|
|
// Symbol name offset overflows string table.
|
|
RUN: not llvm-readobj %p/Inputs/corrupt.elf-x86-64 -symbols \
|
|
RUN: 2>&1 | FileCheck --check-prefix=SYMNAME %s
|
|
|
|
SYMNAME: Error reading file: Invalid data was encountered while parsing the file.
|
|
|
|
|
|
// Version index in .gnu.version overflows the version map.
|
|
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
|
|
|
|
RUN: not llvm-readobj -program-headers \
|
|
RUN: %p/Inputs/corrupt-invalid-phentsize.elf.x86-64 2>&1 | \
|
|
RUN: FileCheck --check-prefix=PHENTSIZE %s
|
|
|
|
PHENTSIZE: Invalid program header size
|