1# RUN: yaml2obj %s -o %t 2# RUN: llvm-readelf -V %t | FileCheck %s --check-prefix=HIDDEN 3 4# HIDDEN: Version symbols section '.gnu.version' contains 2 entries: 5# HIDDEN-NEXT: Addr: 0000000000200210 Offset: 0x000040 Link: 3 (.dynsym) 6# HIDDEN-NEXT: 000: 0 (*local*) 3h(hiddensym) 7 8--- !ELF 9FileHeader: 10 Class: ELFCLASS64 11 Data: ELFDATA2LSB 12 Type: ET_EXEC 13Sections: 14 - Name: .gnu.version 15 Type: SHT_GNU_versym 16 Flags: [ SHF_ALLOC ] 17 Address: 0x0000000000200210 18 Link: .dynsym 19 Entries: [ 0, 0x8003 ] 20 - Name: .gnu.version_r 21 Type: SHT_GNU_verneed 22 Flags: [ SHF_ALLOC ] 23 Link: .dynstr 24 Info: 0x0000000000000001 25 Dependencies: 26 - Version: 1 27 File: somefile 28 Entries: 29 - Name: hiddensym 30 Hash: 1234 31 Flags: 0 32 Other: 3 33DynamicSymbols: 34 - Name: h 35 Binding: STB_GLOBAL 36