[ARM] Adjust how NEON shifts are lowered
[llvm-core.git] / test / tools / obj2yaml / dynamic-section.test
blob28066dd16adfb84059ae05a97c4e83bc3ce20249
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.
8 # CHECK:       Sections:
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
128 !ELF
129 FileHeader:
130   Class:           ELFCLASS64
131   Data:            ELFDATA2LSB
132   Type:            ET_DYN
133   Machine:         EM_X86_64
134 Sections:
135   - Name:            .dynamic
136     Type:            SHT_DYNAMIC
137     Address:         0x0000000000001000
138     AddressAlign:    0x0000000000002000
139     EntSize:         0x0000000000000010
140     Entries:
141       - Tag:             DT_NULL
142         Value:           0x0000000000000000
143       - Tag:             DT_NEEDED
144         Value:           0x0000000000000001
145       - Tag:             DT_PLTRELSZ
146         Value:           0x0000000000000002
147       - Tag:             DT_PLTGOT
148         Value:           0x0000000000000003
149       - Tag:             DT_HASH
150         Value:           0x0000000000000004
151       - Tag:             DT_STRTAB
152         Value:           0x0000000000000005
153       - Tag:             DT_SYMTAB
154         Value:           0x0000000000000006
155       - Tag:             DT_RELA
156         Value:           0x0000000000000007
157       - Tag:             DT_RELASZ
158         Value:           0x0000000000000008
159       - Tag:             DT_RELAENT
160         Value:           0x0000000000000009
161       - Tag:             DT_STRSZ
162         Value:           0x000000000000000A
163       - Tag:             DT_SYMENT
164         Value:           0x000000000000000B
165       - Tag:             DT_INIT
166         Value:           0x000000000000000C
167       - Tag:             DT_FINI
168         Value:           0x000000000000000D
169       - Tag:             DT_SONAME
170         Value:           0x000000000000000E
171       - Tag:             DT_RPATH
172         Value:           0x000000000000000F
173       - Tag:             DT_SYMBOLIC
174         Value:           0x0000000000000010
175       - Tag:             DT_REL
176         Value:           0x0000000000000011
177       - Tag:             DT_RELSZ
178         Value:           0x0000000000000012
179       - Tag:             DT_RELENT
180         Value:           0x0000000000000013
181       - Tag:             DT_PLTREL
182         Value:           0x0000000000000014
183       - Tag:             DT_DEBUG
184         Value:           0x0000000000000015
185       - Tag:             DT_TEXTREL
186         Value:           0x0000000000000016
187       - Tag:             DT_JMPREL
188         Value:           0x0000000000000017
189       - Tag:             DT_BIND_NOW
190         Value:           0x0000000000000018
191       - Tag:             DT_INIT_ARRAY
192         Value:           0x0000000000000019
193       - Tag:             DT_FINI_ARRAY
194         Value:           0x000000000000001A
195       - Tag:             DT_INIT_ARRAYSZ
196         Value:           0x000000000000001B
197       - Tag:             DT_FINI_ARRAYSZ
198         Value:           0x000000000000001C
199       - Tag:             DT_RUNPATH
200         Value:           0x000000000000001D
201       - Tag:             DT_FLAGS
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
209       - Tag:             DT_RELRSZ
210         Value:           0x0000000000000022
211       - Tag:             DT_RELR
212         Value:           0x0000000000000023
213       - Tag:             DT_RELRENT
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
229       - Tag:             DT_GNU_HASH
230         Value:           0x000000000000002C
231       - Tag:             DT_TLSDESC_PLT
232         Value:           0x000000000000002D
233       - Tag:             DT_TLSDESC_GOT
234         Value:           0x000000000000002E
235       - Tag:             DT_RELACOUNT
236         Value:           0x000000000000002F
237       - Tag:             DT_RELCOUNT
238         Value:           0x0000000000000030
239       - Tag:             DT_FLAGS_1
240         Value:           0x0000000000000031
241       - Tag:             DT_VERSYM
242         Value:           0x0000000000000032
243       - Tag:             DT_VERDEF
244         Value:           0x0000000000000033
245       - Tag:             DT_VERDEFNUM
246         Value:           0x0000000000000034
247       - Tag:             DT_VERNEED
248         Value:           0x0000000000000035
249       - Tag:             DT_VERNEEDNUM
250         Value:           0x0000000000000036
251       - Tag:             DT_USED
252         Value:           0x0000000000000001