reloc-no-sym.test 599 Bytes
## Check llvm-readobj is able to dump relocations that
## do not use symbols. 

# RUN: yaml2obj %s -o %t
# RUN: llvm-readobj -r %t | FileCheck %s

# CHECK:      Relocations [
# CHECK-NEXT:   Section (1) .rela.plt {
# CHECK-NEXT:     0x12345678 R_X86_64_IRELATIVE - 0x87654321
# CHECK-NEXT:   }
# CHECK-NEXT: ]

--- !ELF
FileHeader:
  Class:   ELFCLASS64
  Data:    ELFDATA2LSB
  Type:    ET_EXEC
  Machine: EM_X86_64
Sections:
  - Name:  .rela.plt
    Type:  SHT_RELA
    Flags: [ SHF_ALLOC ]
    Relocations:
      - Offset: 0x12345678
        Type:   R_X86_64_IRELATIVE
        Addend: 0x87654321