1## Test that llvm-objdump can handle SHN_XINDEX. The relocation points to a section 2## symbol that has st_shndx == SHN_XINDEX. To print the section name llvm-objdump 3## has to use the SHT_SYMTAB_SHNDX section. 4 5# RUN: yaml2obj %s -o %t 6# RUN: llvm-objdump -r %t | FileCheck %s 7 8# CHECK: RELOCATION RECORDS FOR [.text]: 9# CHECK-NEXT: OFFSET TYPE VALUE 10# CHECK-NEXT: 0000000000000000 R_X86_64_32 bar 11 12--- !ELF 13FileHeader: 14 Class: ELFCLASS64 15 Data: ELFDATA2LSB 16 Type: ET_REL 17 Machine: EM_X86_64 18Sections: 19 - Name: .text 20 Type: SHT_PROGBITS 21 - Name: .rela.text 22 Type: SHT_RELA 23 Info: .text 24 Relocations: 25 - Offset: 0x0000000000000000 26 Symbol: bar 27 Type: R_X86_64_32 28 - Name: bar 29 Type: SHT_PROGBITS 30 - Name: .symtab_shndx 31 Type: SHT_SYMTAB_SHNDX 32 Link: .symtab 33 Entries: [ 0, 3 ] 34Symbols: 35 - Name: bar 36 Type: STT_SECTION 37 Index: SHN_XINDEX 38