mirror of
https://github.com/RPCSX/llvm.git
synced 2026-01-31 01:05:23 +01:00
Reviewers: dblaikie, aprantl Differential Revision: https://reviews.llvm.org/D32779 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@304759 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
1.3 KiB
Plaintext
25 lines
1.3 KiB
Plaintext
; Verify that llvm-dwarfdump handles invalid string offset tables.
|
|
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-invalid-1.x86_64.o | \
|
|
RUN: FileCheck --check-prefix=INVALIDCONTRIB %s
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-invalid-2.x86_64.o | \
|
|
RUN: FileCheck --check-prefix=INVALIDCONTRIB %s
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-invalid-3.x86_64.o | \
|
|
RUN: FileCheck --check-prefix=INVALIDCONTRIB %s
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-invalid-4.x86_64.o | \
|
|
RUN: FileCheck --check-prefix=INVALIDLENGTH %s
|
|
RUN: llvm-dwarfdump %p/Inputs/dwarfdump-str-offsets-invalid-5.x86_64.o | \
|
|
RUN: FileCheck --check-prefix=INVALIDSECTIONLENGTH %s
|
|
|
|
INVALIDCONTRIB: .debug_str_offsets contents:
|
|
INVALIDCONTRIB-NOT: contents:
|
|
INVALIDCONTRIB: error: invalid contribution to string offsets table in section .debug_str_offsets.
|
|
|
|
INVALIDLENGTH: .debug_str_offsets contents:
|
|
INVALIDLENGTH-NOT: contents:
|
|
INVALIDLENGTH: error: contribution to string offsets table in section .debug_str_offsets has invalid length.
|
|
|
|
INVALIDSECTIONLENGTH: .debug_str_offsets contents:
|
|
INVALIDSECTIONLENGTH-NOT: contents:
|
|
INVALIDSECTIONLENGTH: error: size of .debug_str_offsets is not a multiple of 4.
|