1## Check we report an error when trying to dump an object 2## which has a relocation section that has a broken sh_info 3## field, which is larger than the number of sections. 4 5# RUN: yaml2obj %s -o %t 6# RUN: not llvm-cxxdump %t 2>&1 | FileCheck %s 7# CHECK: error: reading file: invalid section index: 255 8 9--- !ELF 10FileHeader: 11 Class: ELFCLASS64 12 Data: ELFDATA2LSB 13 Type: ET_REL 14 Machine: EM_X86_64 15Sections: 16- Name: .rela.foo 17 Type: SHT_RELA 18 Link: 0 19 Info: 0xFF 20 Relocations: [] 21