1 # RUN: yaml2obj %s -o %t
2 # RUN: obj2yaml %t | FileCheck %s
4 ## Check we are able to yamalize SHT_GNU_verdef section.
6 # CHECK: - Name: .gnu.version_d
7 # CHECK-NEXT: Type: SHT_GNU_verdef
8 # CHECK-NEXT: Flags: [ SHF_ALLOC ]
9 # CHECK-NEXT: Address: 0x0000000000000230
10 # CHECK-NEXT: Link: .dynstr
11 # CHECK-NEXT: AddressAlign: 0x0000000000000004
12 # CHECK-NEXT: Info: 0x0000000000000004
13 # CHECK-NEXT: Entries:
14 # CHECK-NEXT: - Version: 1
15 # CHECK-NEXT: Flags: 1
16 # CHECK-NEXT: VersionNdx: 1
17 # CHECK-NEXT: Hash: 170240160
19 # CHECK-NEXT: - dso.so.0
20 # CHECK-NEXT: - Version: 1
21 # CHECK-NEXT: Flags: 2
22 # CHECK-NEXT: VersionNdx: 2
23 # CHECK-NEXT: Hash: 108387921
25 # CHECK-NEXT: - VERSION_1
26 # CHECK-NEXT: - Version: 1
27 # CHECK-NEXT: Flags: 3
28 # CHECK-NEXT: VersionNdx: 3
29 # CHECK-NEXT: Hash: 108387922
31 # CHECK-NEXT: - VERSION_2
32 # CHECK-NEXT: - VERSION_3
40 Entry: 0x0000000000001000
42 - Name: .gnu.version_d
45 Address: 0x0000000000000230
47 AddressAlign: 0x0000000000000004
48 Info: 0x0000000000000004