1 ## Check that we are able to yamalize the SHT_GNU_verneed section.
2 ## Check we don't dump the `Info` field when its value
3 ## is equal to the number of version dependencies.
5 # RUN: yaml2obj %s -o %t
6 # RUN: obj2yaml %t | FileCheck %s
8 # CHECK: - Name: .gnu.version_r
9 # CHECK-NEXT: Type: SHT_GNU_verneed
10 # CHECK-NEXT: Flags: [ SHF_ALLOC ]
11 # CHECK-NEXT: Address: 0x200250
12 # CHECK-NEXT: Link: .dynstr
13 # CHECK-NEXT: AddressAlign: 0x4
14 # INFO-NEXT: Info: 0x3
15 # CHECK-NEXT: Dependencies:
16 # CHECK-NEXT: - Version: 1
17 # CHECK-NEXT: File: dso.so.0
18 # CHECK-NEXT: Entries:
19 # CHECK-NEXT: - Name: v1
20 # CHECK-NEXT: Hash: 1937
21 # CHECK-NEXT: Flags: 10
22 # CHECK-NEXT: Other: 3
23 # CHECK-NEXT: - Name: v2
24 # CHECK-NEXT: Hash: 1938
25 # CHECK-NEXT: Flags: 11
26 # CHECK-NEXT: Other: 4
27 # CHECK-NEXT: - Version: 1
28 # CHECK-NEXT: File: dso.so.1
29 # CHECK-NEXT: Entries:
30 # CHECK-NEXT: - Name: v3
31 # CHECK-NEXT: Hash: 1939
32 # CHECK-NEXT: Flags: 12
33 # CHECK-NEXT: Other: 2
40 Entry: 0x0000000000201000
42 - Name: .gnu.version_r
71 ## Check we dump the `Info` field when its value
72 ## is not equal to the number of version dependencies.
74 # RUN: yaml2obj %s -DINFO=0x3 -o %t.info
75 # RUN: obj2yaml %t.info | FileCheck %s --check-prefixes=CHECK,INFO