1 # RUN: yaml2obj %s -o %t
2 # RUN: obj2yaml %t | FileCheck %s
4 ## Check we are able to yamalize the SHT_GNU_versym section.
7 # CHECK-NEXT: FileHeader:
8 # CHECK-NEXT: Class: ELFCLASS64
9 # CHECK-NEXT: Data: ELFDATA2LSB
10 # CHECK-NEXT: Type: ET_EXEC
11 # CHECK-NEXT: Machine: EM_X86_64
12 # CHECK-NEXT: Entry: 0x0000000000201000
13 # CHECK-NEXT: Sections:
14 # CHECK-NEXT: - Name: .gnu.version
15 # CHECK-NEXT: Type: SHT_GNU_versym
16 # CHECK-NEXT: Flags: [ SHF_ALLOC ]
17 # CHECK-NEXT: Address: 0x0000000000200210
18 # CHECK-NEXT: Link: .dynsym
19 # CHECK-NEXT: AddressAlign: 0x0000000000000002
20 # CHECK-NEXT: EntSize: 0x0000000000000002
21 # CHECK-NEXT: Entries: [ 0, 3, 4 ]
22 # CHECK-NEXT: DynamicSymbols:
23 # CHECK-NEXT: - Name: f1
24 # CHECK-NEXT: Binding: STB_GLOBAL
25 # CHECK-NEXT: - Name: f2
26 # CHECK-NEXT: Binding: STB_GLOBAL
34 Entry: 0x0000000000201000
39 Address: 0x0000000000200210
41 AddressAlign: 0x0000000000000002
42 EntSize: 0x0000000000000002