brintos

brintos / llvm-project-archived public Read only

0
0
Text · 495 B · c38786c Raw
21 lines · plain
1## Check we report an error when trying to dump an object2## which has a relocation section that has a broken sh_info3## field, which is larger than the number of sections.4 5# RUN: yaml2obj %s -o %t6# RUN: not llvm-cxxdump %t 2>&1 | FileCheck %s7# CHECK: error: reading file: invalid section index: 2558 9--- !ELF10FileHeader:11  Class:   ELFCLASS6412  Data:    ELFDATA2LSB13  Type:    ET_REL14  Machine: EM_X86_6415Sections:16- Name: .rela.foo17  Type: SHT_RELA18  Link: 019  Info: 0xFF20  Relocations: []21