[clangd] Re-land "support outgoing calls in call hierarchy" (#117673)
[llvm-project.git] / llvm / test / tools / yaml2obj / ELF / relocation-implicit-symbol-index.yaml
blobffc8c18a2ad6920471e0ed0937403a97cde036ae
1 ## If "Symbol" is not specified for a relocation, the symbol index is assumed to be 0.
3 # RUN: yaml2obj %s -o %t
4 # RUN: llvm-readobj -r %t | FileCheck %s
6 # CHECK:     Relocations [
7 # CHECK-NEXT:  Section (2) .rel.text {
8 # CHECK-NEXT:    0x1000 R_X86_64_RELATIVE -
9 # CHECK-NEXT:    0x1001 R_X86_64_PC32 -
10 # CHECK-NEXT:  }
11 # CHECK-NEXT:]
13 !ELF
14 FileHeader:
15   Class:           ELFCLASS64
16   Data:            ELFDATA2LSB
17   Type:            ET_EXEC
18   Machine:         EM_X86_64
19 Sections:
20   - Name:            .text
21     Type:            SHT_PROGBITS
22     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
23     Content:         "00000000"
24   - Name:            .rel.text
25     Type:            SHT_REL
26     Info:            .text
27     Relocations:
28       - Offset: 0x1000
29         Type:   R_X86_64_RELATIVE
30       ## R_X86_64_PC32 should have a non-zero symbol index but we don't error.
31       - Offset: 0x1001
32         Type:   R_X86_64_PC32