[ARM] A predicate cast of a predicate cast is a predicate cast
[llvm-complete.git] / test / tools / llvm-objdump / relocation-xindex-symbol.test
blob31cf9bc0e95c1812ff9bfcbdac8fac9537bfdb7e
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.
5 # RUN: yaml2obj %s -o %t
6 # RUN: llvm-objdump -r %t | FileCheck %s
8 # CHECK:      RELOCATION RECORDS FOR [.text]:
9 # CHECK-NEXT: 0000000000000000 R_X86_64_32 bar
11 --- !ELF
12 FileHeader:
13   Class:   ELFCLASS64
14   Data:    ELFDATA2LSB
15   Type:    ET_REL
16   Machine: EM_X86_64
17 Sections:
18   - Name: .text
19     Type: SHT_PROGBITS
20   - Name: .rela.text
21     Type: SHT_RELA
22     Info: .text
23     Relocations:
24       - Offset: 0x0000000000000000
25         Symbol: bar
26         Type:   R_X86_64_32
27   - Name: bar
28     Type: SHT_PROGBITS
29   - Name:    .symtab_shndx
30     Type:    SHT_SYMTAB_SHNDX
31     Link:    .symtab
32     Entries: [ 0, 3 ]
33 Symbols:
34   - Name:  bar
35     Type:  STT_SECTION
36     Index: SHN_XINDEX