1 # RUN: yaml2obj %s -o %t
2 # RUN: obj2yaml %t | FileCheck %s
4 ## Check we are able to yamalize SHT_GNU_verneed section.
6 # CHECK: - Name: .gnu.version_r
7 # CHECK-NEXT: Type: SHT_GNU_verneed
8 # CHECK-NEXT: Flags: [ SHF_ALLOC ]
9 # CHECK-NEXT: Address: 0x0000000000200250
10 # CHECK-NEXT: Link: .dynstr
11 # CHECK-NEXT: AddressAlign: 0x0000000000000004
12 # CHECK-NEXT: Info: 0x0000000000000002
13 # CHECK-NEXT: Dependencies:
14 # CHECK-NEXT: - Version: 1
15 # CHECK-NEXT: File: dso.so.0
16 # CHECK-NEXT: Entries:
17 # CHECK-NEXT: - Name: v1
18 # CHECK-NEXT: Hash: 1937
19 # CHECK-NEXT: Flags: 10
20 # CHECK-NEXT: Other: 3
21 # CHECK-NEXT: - Name: v2
22 # CHECK-NEXT: Hash: 1938
23 # CHECK-NEXT: Flags: 11
24 # CHECK-NEXT: Other: 4
25 # CHECK-NEXT: - Version: 1
26 # CHECK-NEXT: File: dso.so.1
27 # CHECK-NEXT: Entries:
28 # CHECK-NEXT: - Name: v3
29 # CHECK-NEXT: Hash: 1939
30 # CHECK-NEXT: Flags: 12
31 # CHECK-NEXT: Other: 2
39 Entry: 0x0000000000201000
41 - Name: .gnu.version_r