1# RUN: yaml2obj %s -o %t 2# RUN: llvm-objdump -p %t | FileCheck %s 3 4# CHECK: Version References: 5# CHECK-NEXT: required from dso.so.0: 6# CHECK-NEXT: 0x000004d2 0x0a 03 v1 7# CHECK-NEXT: 0x0000162e 0x0b 04 v2 8# CHECK-NEXT: required from dso.so.1: 9# CHECK-NEXT: 0x000011d7 0x0c 02 v3 10 11--- !ELF 12FileHeader: 13 Class: ELFCLASS64 14 Data: ELFDATA2LSB 15 Type: ET_EXEC 16 Machine: EM_X86_64 17 Entry: 0x0000000000201000 18Sections: 19 - Name: .gnu.version_r 20 Type: SHT_GNU_verneed 21 Flags: [ SHF_ALLOC ] 22 Address: 0x0000000000200250 23 Link: .dynstr 24 AddressAlign: 0x0000000000000004 25 Info: 0x0000000000000002 26 Dependencies: 27 - Version: 1 28 File: dso.so.0 29 Entries: 30 - Name: v1 31 Hash: 1234 32 Flags: 10 33 Other: 3 34 - Name: v2 35 Hash: 5678 36 Flags: 11 37 Other: 4 38 - Version: 1 39 File: dso.so.1 40 Entries: 41 - Name: v3 42 Hash: 4567 43 Flags: 12 44 Other: 2 45DynamicSymbols: 46 - Name: f1 47 Binding: STB_GLOBAL 48