1# RUN: yaml2obj %s -o %t
2# RUN: llvm-objdump -p %t | FileCheck %s
3
4!ELF
5FileHeader:
6  Class:           ELFCLASS64
7  Data:            ELFDATA2LSB
8  Type:            ET_REL
9  Machine:         EM_X86_64
10Sections:
11  - Name:            .dynamic
12    Type:            SHT_DYNAMIC
13    Flags:           [ SHF_WRITE, SHF_ALLOC ]
14    EntSize:         0x0000000000000010
15    Entries:
16      - Tag:             DT_INIT
17        Value:           0x00000000000006A0
18      - Tag:             DT_FINI
19        Value:           0x0000000000000924
20      - Tag:             DT_INIT_ARRAY
21        Value:           0x0000000000200DA8
22      - Tag:             DT_INIT_ARRAYSZ
23        Value:           0x0000000000000010
24      - Tag:             DT_FINI_ARRAY
25        Value:           0x0000000000200DB8
26      - Tag:             DT_FINI_ARRAYSZ
27        Value:           0x0000000000000008
28      - Tag:             DT_GNU_HASH
29        Value:           0x0000000000000298
30      - Tag:             DT_STRTAB
31        Value:           0x00000000000003C8
32      - Tag:             DT_SYMTAB
33        Value:           0x00000000000002C0
34      - Tag:             DT_STRSZ
35        Value:           0x000000000000012F
36      - Tag:             DT_SYMENT
37        Value:           0x0000000000000018
38      - Tag:             DT_DEBUG
39        Value:           0x0000000000000000
40      - Tag:             DT_PLTGOT
41        Value:           0x0000000000201000
42      - Tag:             DT_PLTRELSZ
43        Value:           0x0000000000000048
44      - Tag:             DT_PLTREL
45        Value:           0x0000000000000007
46      - Tag:             DT_JMPREL
47        Value:           0x0000000000000658
48      - Tag:             DT_RELA
49        Value:           0x0000000000000550
50      - Tag:             DT_RELASZ
51        Value:           0x0000000000000108
52      - Tag:             DT_RELAENT
53        Value:           0x0000000000000018
54      - Tag:             DT_FLAGS_1
55        Value:           0x0000000008000000
56      - Tag:             DT_VERNEED
57        Value:           0x0000000000000510
58      - Tag:             DT_VERNEEDNUM
59        Value:           0x0000000000000002
60      - Tag:             DT_VERSYM
61        Value:           0x00000000000004F8
62      - Tag:             DT_RELACOUNT
63        Value:           0x0000000000000004
64      - Tag:             DT_RELRSZ
65        Value:           0x0000000000000014
66      - Tag:             DT_RELR
67        Value:           0x0000000087654321
68      - Tag:             DT_RELRENT
69        Value:           0x0000000000000010
70      - Tag:             DT_NULL
71        Value:           0x0000000000000000
72
73# CHECK:  INIT                 0x00000000000006a0
74# CHECK:  FINI                 0x0000000000000924
75# CHECK:  INIT_ARRAY           0x0000000000200da8
76# CHECK:  INIT_ARRAYSZ         0x0000000000000010
77# CHECK:  FINI_ARRAY           0x0000000000200db8
78# CHECK:  FINI_ARRAYSZ         0x0000000000000008
79# CHECK:  GNU_HASH             0x0000000000000298
80# CHECK:  STRTAB               0x00000000000003c8
81# CHECK:  SYMTAB               0x00000000000002c0
82# CHECK:  STRSZ                0x000000000000012f
83# CHECK:  SYMENT               0x0000000000000018
84# CHECK:  DEBUG                0x0000000000000000
85# CHECK:  PLTGOT               0x0000000000201000
86# CHECK:  PLTRELSZ             0x0000000000000048
87# CHECK:  PLTREL               0x0000000000000007
88# CHECK:  JMPREL               0x0000000000000658
89# CHECK:  RELA                 0x0000000000000550
90# CHECK:  RELASZ               0x0000000000000108
91# CHECK:  RELAENT              0x0000000000000018
92# CHECK:  FLAGS_1              0x0000000008000000
93# CHECK:  VERNEED              0x0000000000000510
94# CHECK:  VERNEEDNUM           0x0000000000000002
95# CHECK:  VERSYM               0x00000000000004f8
96# CHECK:  RELACOUNT            0x0000000000000004
97# CHECK:  RELRSZ               0x0000000000000014
98# CHECK:  RELR                 0x0000000087654321
99# CHECK:  RELRENT              0x0000000000000010
100