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