1 # RUN: yaml2obj %s -o %t
2 # RUN: obj2yaml %t | FileCheck %s
4 ## Check we can use obj2yaml to yamalize the object containing
5 ## .dynamic section. Check that resulting section has the
6 ## proper attributes and dynamic tags.
9 # CHECK-NEXT: - Name: .dynamic
10 # CHECK-NEXT: Type: SHT_DYNAMIC
11 # CHECK-NEXT: Address: 0x0000000000001000
12 # CHECK-NEXT: AddressAlign: 0x0000000000002000
13 # CHECK-NEXT: EntSize: 0x0000000000000010
14 # CHECK-NEXT: Entries:
15 # CHECK-NEXT: - Tag: DT_NULL
16 # CHECK-NEXT: Value: 0x0000000000000000
17 # CHECK-NEXT: - Tag: DT_NEEDED
18 # CHECK-NEXT: Value: 0x0000000000000001
19 # CHECK-NEXT: - Tag: DT_PLTRELSZ
20 # CHECK-NEXT: Value: 0x0000000000000002
21 # CHECK-NEXT: - Tag: DT_PLTGOT
22 # CHECK-NEXT: Value: 0x0000000000000003
23 # CHECK-NEXT: - Tag: DT_HASH
24 # CHECK-NEXT: Value: 0x0000000000000004
25 # CHECK-NEXT: - Tag: DT_STRTAB
26 # CHECK-NEXT: Value: 0x0000000000000005
27 # CHECK-NEXT: - Tag: DT_SYMTAB
28 # CHECK-NEXT: Value: 0x0000000000000006
29 # CHECK-NEXT: - Tag: DT_RELA
30 # CHECK-NEXT: Value: 0x0000000000000007
31 # CHECK-NEXT: - Tag: DT_RELASZ
32 # CHECK-NEXT: Value: 0x0000000000000008
33 # CHECK-NEXT: - Tag: DT_RELAENT
34 # CHECK-NEXT: Value: 0x0000000000000009
35 # CHECK-NEXT: - Tag: DT_STRSZ
36 # CHECK-NEXT: Value: 0x000000000000000A
37 # CHECK-NEXT: - Tag: DT_SYMENT
38 # CHECK-NEXT: Value: 0x000000000000000B
39 # CHECK-NEXT: - Tag: DT_INIT
40 # CHECK-NEXT: Value: 0x000000000000000C
41 # CHECK-NEXT: - Tag: DT_FINI
42 # CHECK-NEXT: Value: 0x000000000000000D
43 # CHECK-NEXT: - Tag: DT_SONAME
44 # CHECK-NEXT: Value: 0x000000000000000E
45 # CHECK-NEXT: - Tag: DT_RPATH
46 # CHECK-NEXT: Value: 0x000000000000000F
47 # CHECK-NEXT: - Tag: DT_SYMBOLIC
48 # CHECK-NEXT: Value: 0x0000000000000010
49 # CHECK-NEXT: - Tag: DT_REL
50 # CHECK-NEXT: Value: 0x0000000000000011
51 # CHECK-NEXT: - Tag: DT_RELSZ
52 # CHECK-NEXT: Value: 0x0000000000000012
53 # CHECK-NEXT: - Tag: DT_RELENT
54 # CHECK-NEXT: Value: 0x0000000000000013
55 # CHECK-NEXT: - Tag: DT_PLTREL
56 # CHECK-NEXT: Value: 0x0000000000000014
57 # CHECK-NEXT: - Tag: DT_DEBUG
58 # CHECK-NEXT: Value: 0x0000000000000015
59 # CHECK-NEXT: - Tag: DT_TEXTREL
60 # CHECK-NEXT: Value: 0x0000000000000016
61 # CHECK-NEXT: - Tag: DT_JMPREL
62 # CHECK-NEXT: Value: 0x0000000000000017
63 # CHECK-NEXT: - Tag: DT_BIND_NOW
64 # CHECK-NEXT: Value: 0x0000000000000018
65 # CHECK-NEXT: - Tag: DT_INIT_ARRAY
66 # CHECK-NEXT: Value: 0x0000000000000019
67 # CHECK-NEXT: - Tag: DT_FINI_ARRAY
68 # CHECK-NEXT: Value: 0x000000000000001A
69 # CHECK-NEXT: - Tag: DT_INIT_ARRAYSZ
70 # CHECK-NEXT: Value: 0x000000000000001B
71 # CHECK-NEXT: - Tag: DT_FINI_ARRAYSZ
72 # CHECK-NEXT: Value: 0x000000000000001C
73 # CHECK-NEXT: - Tag: DT_RUNPATH
74 # CHECK-NEXT: Value: 0x000000000000001D
75 # CHECK-NEXT: - Tag: DT_FLAGS
76 # CHECK-NEXT: Value: 0x000000000000001E
77 # CHECK-NEXT: - Tag: DT_PREINIT_ARRAY
78 # CHECK-NEXT: Value: 0x000000000000001F
79 # CHECK-NEXT: - Tag: DT_PREINIT_ARRAYSZ
80 # CHECK-NEXT: Value: 0x0000000000000020
81 # CHECK-NEXT: - Tag: DT_SYMTAB_SHNDX
82 # CHECK-NEXT: Value: 0x0000000000000021
83 # CHECK-NEXT: - Tag: DT_RELRSZ
84 # CHECK-NEXT: Value: 0x0000000000000022
85 # CHECK-NEXT: - Tag: DT_RELR
86 # CHECK-NEXT: Value: 0x0000000000000023
87 # CHECK-NEXT: - Tag: DT_RELRENT
88 # CHECK-NEXT: Value: 0x0000000000000024
89 # CHECK-NEXT: - Tag: DT_ANDROID_REL
90 # CHECK-NEXT: Value: 0x0000000000000025
91 # CHECK-NEXT: - Tag: DT_ANDROID_RELSZ
92 # CHECK-NEXT: Value: 0x0000000000000026
93 # CHECK-NEXT: - Tag: DT_ANDROID_RELA
94 # CHECK-NEXT: Value: 0x0000000000000027
95 # CHECK-NEXT: - Tag: DT_ANDROID_RELASZ
96 # CHECK-NEXT: Value: 0x0000000000000028
97 # CHECK-NEXT: - Tag: DT_ANDROID_RELR
98 # CHECK-NEXT: Value: 0x0000000000000029
99 # CHECK-NEXT: - Tag: DT_ANDROID_RELRSZ
100 # CHECK-NEXT: Value: 0x000000000000002A
101 # CHECK-NEXT: - Tag: DT_ANDROID_RELRENT
102 # CHECK-NEXT: Value: 0x000000000000002B
103 # CHECK-NEXT: - Tag: DT_GNU_HASH
104 # CHECK-NEXT: Value: 0x000000000000002C
105 # CHECK-NEXT: - Tag: DT_TLSDESC_PLT
106 # CHECK-NEXT: Value: 0x000000000000002D
107 # CHECK-NEXT: - Tag: DT_TLSDESC_GOT
108 # CHECK-NEXT: Value: 0x000000000000002E
109 # CHECK-NEXT: - Tag: DT_RELACOUNT
110 # CHECK-NEXT: Value: 0x000000000000002F
111 # CHECK-NEXT: - Tag: DT_RELCOUNT
112 # CHECK-NEXT: Value: 0x0000000000000030
113 # CHECK-NEXT: - Tag: DT_FLAGS_1
114 # CHECK-NEXT: Value: 0x0000000000000031
115 # CHECK-NEXT: - Tag: DT_VERSYM
116 # CHECK-NEXT: Value: 0x0000000000000032
117 # CHECK-NEXT: - Tag: DT_VERDEF
118 # CHECK-NEXT: Value: 0x0000000000000033
119 # CHECK-NEXT: - Tag: DT_VERDEFNUM
120 # CHECK-NEXT: Value: 0x0000000000000034
121 # CHECK-NEXT: - Tag: DT_VERNEED
122 # CHECK-NEXT: Value: 0x0000000000000035
123 # CHECK-NEXT: - Tag: DT_VERNEEDNUM
124 # CHECK-NEXT: Value: 0x0000000000000036
125 # CHECK-NEXT: - Tag: DT_USED
126 # CHECK-NEXT: Value: 0x0000000000000001
137 Address: 0x0000000000001000
138 AddressAlign: 0x0000000000002000
139 EntSize: 0x0000000000000010
142 Value: 0x0000000000000000
144 Value: 0x0000000000000001
146 Value: 0x0000000000000002
148 Value: 0x0000000000000003
150 Value: 0x0000000000000004
152 Value: 0x0000000000000005
154 Value: 0x0000000000000006
156 Value: 0x0000000000000007
158 Value: 0x0000000000000008
160 Value: 0x0000000000000009
162 Value: 0x000000000000000A
164 Value: 0x000000000000000B
166 Value: 0x000000000000000C
168 Value: 0x000000000000000D
170 Value: 0x000000000000000E
172 Value: 0x000000000000000F
174 Value: 0x0000000000000010
176 Value: 0x0000000000000011
178 Value: 0x0000000000000012
180 Value: 0x0000000000000013
182 Value: 0x0000000000000014
184 Value: 0x0000000000000015
186 Value: 0x0000000000000016
188 Value: 0x0000000000000017
190 Value: 0x0000000000000018
192 Value: 0x0000000000000019
194 Value: 0x000000000000001A
195 - Tag: DT_INIT_ARRAYSZ
196 Value: 0x000000000000001B
197 - Tag: DT_FINI_ARRAYSZ
198 Value: 0x000000000000001C
200 Value: 0x000000000000001D
202 Value: 0x000000000000001E
203 - Tag: DT_PREINIT_ARRAY
204 Value: 0x000000000000001F
205 - Tag: DT_PREINIT_ARRAYSZ
206 Value: 0x0000000000000020
207 - Tag: DT_SYMTAB_SHNDX
208 Value: 0x0000000000000021
210 Value: 0x0000000000000022
212 Value: 0x0000000000000023
214 Value: 0x0000000000000024
215 - Tag: DT_ANDROID_REL
216 Value: 0x0000000000000025
217 - Tag: DT_ANDROID_RELSZ
218 Value: 0x0000000000000026
219 - Tag: DT_ANDROID_RELA
220 Value: 0x0000000000000027
221 - Tag: DT_ANDROID_RELASZ
222 Value: 0x0000000000000028
223 - Tag: DT_ANDROID_RELR
224 Value: 0x0000000000000029
225 - Tag: DT_ANDROID_RELRSZ
226 Value: 0x000000000000002A
227 - Tag: DT_ANDROID_RELRENT
228 Value: 0x000000000000002B
230 Value: 0x000000000000002C
231 - Tag: DT_TLSDESC_PLT
232 Value: 0x000000000000002D
233 - Tag: DT_TLSDESC_GOT
234 Value: 0x000000000000002E
236 Value: 0x000000000000002F
238 Value: 0x0000000000000030
240 Value: 0x0000000000000031
242 Value: 0x0000000000000032
244 Value: 0x0000000000000033
246 Value: 0x0000000000000034
248 Value: 0x0000000000000035
250 Value: 0x0000000000000036
252 Value: 0x0000000000000001