1 ## Show that obj2yaml is able to dump relocations when `e_machine` is unknown.
3 # RUN: yaml2obj %s -o %t1
4 # RUN: obj2yaml %t1 | FileCheck %s
7 # CHECK-NEXT: FileHeader:
8 # CHECK-NEXT: Class: ELFCLASS64
9 # CHECK-NEXT: Data: ELFDATA2MSB
10 # CHECK-NEXT: Type: ET_REL
11 # CHECK-NEXT: Machine: 0x1234
12 # CHECK-NEXT: Sections:
13 # CHECK-NEXT: - Name: .rela.text
14 # CHECK-NEXT: Type: SHT_RELA
15 # CHECK-NEXT: Link: .symtab
16 # CHECK-NEXT: EntSize: 0x0000000000000018
17 # CHECK-NEXT: Relocations:
18 # CHECK-NEXT: - Offset: 0x0000000000000001
19 # CHECK-NEXT: Symbol: ''
20 # CHECK-NEXT: Type: 0x00000002
21 # CHECK-NEXT: - Offset: 0x0000000000000003
22 # CHECK-NEXT: Symbol: ''
23 # CHECK-NEXT: Type: 0x00000004