1# RUN: yaml2obj %s -o %t.o 2# RUN: llvm-readobj -a --cg-profile --addrsig %t.o | FileCheck %s 3 4# Test that multiple sections with the same type does not trigger an error. 5 6# CHECK: ElfHeader { 7# CHECK: VersionSymbols [ 8# CHECK: VersionDefinitions [ 9# CHECK: VersionRequirements [ 10# CHECK: CGProfile [ 11# CHECK: Addrsig [ 12 13--- !ELF 14FileHeader: 15 Class: ELFCLASS64 16 Data: ELFDATA2LSB 17 Type: ET_REL 18 Machine: EM_X86_64 19Sections: 20 - Name: .symtab2 21 Type: SHT_SYMTAB 22 Link: .strtab 23 Content: '' 24 EntSize: 24 25 - Name: .versym 26 Type: SHT_GNU_versym 27 Entries: [ 0 ] 28 Link: .dynsym 29 - Name: .versym2 30 Type: SHT_GNU_versym 31 Entries: [ 0 ] 32 Link: .dynsym 33 - Name: .verdef 34 Type: SHT_GNU_verdef 35 Info: 0x0000000000000000 36 Entries: 37 - Name: .verdef2 38 Type: SHT_GNU_verdef 39 Info: 0x0000000000000000 40 Entries: 41 - Name: .verneed 42 Type: SHT_GNU_verneed 43 Info: 0x0000000000000000 44 Dependencies: 45 - Name: .verneed2 46 Type: SHT_GNU_verneed 47 Info: 0x0000000000000000 48 Dependencies: 49 - Name: .llvm.call-graph-profile 50 Type: SHT_LLVM_CALL_GRAPH_PROFILE 51 Content: '' 52 EntSize: 16 53 - Name: .llvm.call-graph-profile2 54 Type: SHT_LLVM_CALL_GRAPH_PROFILE 55 Content: '' 56 EntSize: 16 57 - Name: .llvm_addrsig 58 Type: SHT_LLVM_ADDRSIG 59 Content: '' 60 - Name: .llvm_addrsig2 61 Type: SHT_LLVM_ADDRSIG 62 Content: '' 63Symbols: 64 - Name: f 65DynamicSymbols: [] 66... 67