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: Link: .symtab
20 # CHECK-NEXT: EntSize: 0x0000000000000018
21 # CHECK-NEXT: Info: .text
22 # CHECK-NEXT: Relocations:
23 # CHECK-NEXT: - Offset: 0x0000000000000000
24 # CHECK-NEXT: Symbol: ''
25 # CHECK-NEXT: Type: R_X86_64_NONE
26 # CHECK-NEXT: - Offset: 0x0000000000000004
27 # CHECK-NEXT: Symbol: ''
28 # CHECK-NEXT: Type: R_X86_64_NONE
29 # CHECK-NEXT: Symbols: []
41 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]