Skip to content

Commit 45ef053

Browse files
author
Georgii Rymar
committed
[llvm-readobj][test] - Remove excessive YAML fields from tests.
This removes excessive YAML keys from `SHT_GNU_verdef` sections. Those keys are set by default. Differential revision: https://reviews.llvm.org/D94660
1 parent d9afe85 commit 45ef053

File tree

3 files changed

+13
-53
lines changed

3 files changed

+13
-53
lines changed

llvm/test/tools/llvm-readobj/ELF/dyn-symbols.test

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -308,16 +308,10 @@ Sections:
308308
AddressAlign: 0x4
309309
Info: 0x2
310310
Entries:
311-
- Version: 1
312-
Flags: 0
313-
VersionNdx: 2
314-
Hash: 0
311+
- VersionNdx: 2
315312
Names:
316313
- Default
317-
- Version: 1
318-
Flags: 0
319-
VersionNdx: 3
320-
Hash: 0
314+
- VersionNdx: 3
321315
Names:
322316
- NonDefault
323317
DynamicSymbols:

llvm/test/tools/llvm-readobj/ELF/verdef-invalid.test

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,7 @@ Sections:
107107
Link: .dynstr
108108
Info: 0x1
109109
Entries:
110-
- Version: 1
111-
Flags: 0
112-
VersionNdx: 0
113-
Hash: 0
114-
Names:
110+
- Names:
115111
- FOO
116112
ShSize: 1
117113
DynamicSymbols:
@@ -137,11 +133,7 @@ Sections:
137133
Link: .dynstr
138134
Info: 0x1
139135
Entries:
140-
- Version: 1
141-
Flags: 0
142-
VersionNdx: 0
143-
Hash: 0
144-
Names:
136+
- Names:
145137
- FOO
146138
ShSize: 21
147139
DynamicSymbols:
@@ -181,11 +173,7 @@ Sections:
181173
Link: .strtab
182174
Info: 0x1
183175
Entries:
184-
- Version: 1
185-
Flags: 0
186-
VersionNdx: 0
187-
Hash: 0
188-
Names:
176+
- Names:
189177
- FOO
190178
- Name: .strtab
191179
Type: SHT_STRTAB
@@ -213,11 +201,7 @@ Sections:
213201
Link: .dynstr
214202
Info: 0x1
215203
Entries:
216-
- Version: 1
217-
Flags: 0
218-
VersionNdx: 0
219-
Hash: 0
220-
Names:
204+
- Names:
221205
- FOO
222206
DynamicSymbols:
223207
- Name: foo
@@ -266,10 +250,7 @@ Sections:
266250
Link: .dynstr
267251
Info: 0x1
268252
Entries:
269-
- Version: 0xfefe
270-
Flags: 0
271-
VersionNdx: 0
272-
Hash: 0
253+
- Version: 0xfefe
273254
Names: []
274255
DynamicSymbols:
275256
- Name: foo

llvm/test/tools/llvm-readobj/ELF/versioninfo.test

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -27,38 +27,23 @@ Sections:
2727
AddressAlign: 0x0000000000000004
2828
Info: 0x0000000000000006
2929
Entries:
30-
- Version: 1
31-
Flags: 0
32-
VersionNdx: 0
33-
Hash: 0
34-
Names:
30+
- Names:
3531
- VERSION1
36-
- Version: 1
37-
Flags: 1
38-
VersionNdx: 0
39-
Hash: 0
32+
- Flags: 1
4033
Names:
4134
- VERSION1
42-
- Version: 1
43-
Flags: 2
44-
VersionNdx: 0
45-
Hash: 0
35+
- Flags: 2
4636
Names:
4737
- VERSION1
48-
- Version: 1
49-
Flags: 4
50-
VersionNdx: 0
51-
Hash: 0
38+
- Flags: 4
5239
Names:
5340
- VERSION1
54-
- Version: 1
55-
Flags: 7
41+
- Flags: 7
5642
VersionNdx: 2
5743
Hash: 175630257
5844
Names:
5945
- VERSION1
60-
- Version: 1
61-
Flags: 8
46+
- Flags: 8
6247
VersionNdx: 3
6348
Hash: 175630258
6449
Names:

0 commit comments

Comments
 (0)