llvm-for-llvmta/test/tools/llvm-dwarfdump/elf-broken-reloc-target.yaml

21 lines
502 B
YAML
Raw Normal View History

2022-04-25 10:02:23 +02:00
## Check we report an error if the relocated section identified by the
## sh_info field of a relocation section is invalid.
# RUN: yaml2obj %s -o %t
# RUN: not llvm-dwarfdump %t 2>&1 | FileCheck %s -DFILE=%t --check-prefix=ERR
# ERR: error: failed to get relocated section: invalid section index: 255
--- !ELF
FileHeader:
Class: ELFCLASS64
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_X86_64
Sections:
- Name: .rela.debug_info
Type: SHT_RELA
Link: 0
Info: 0xFF
Relocations: []