1 ## Check yaml2obj is able to dump relocations
2 ## that have no or a zero symbol associated.
4 # RUN: yaml2obj %s -o %t.o
5 # RUN: obj2yaml %t.o | FileCheck %s
8 # CHECK-NEXT: FileHeader:
9 # CHECK-NEXT: Class: ELFCLASS64
10 # CHECK-NEXT: Data: ELFDATA2LSB
11 # CHECK-NEXT: Type: ET_REL
12 # CHECK-NEXT: Machine: EM_X86_64
13 # CHECK-NEXT: Sections:
14 # CHECK-NEXT: - Name: .text
15 # CHECK-NEXT: Type: SHT_PROGBITS
16 # CHECK-NEXT: Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
17 # CHECK-NEXT: - Name: .rela.text
18 # CHECK-NEXT: Type: SHT_RELA
19 # CHECK-NEXT: Info: .text
20 # CHECK-NEXT: Relocations:
21 # CHECK-NEXT: - Type: R_X86_64_NONE
22 # CHECK-NEXT: - Offset: 0x4
23 # CHECK-NEXT: Type: R_X86_64_NONE
35 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]