1 # RUN: yaml2obj %s | llvm-readobj -symbols - | FileCheck %s 2 !ELF 3 FileHeader: 4 Class: ELFCLASS64 5 Data: ELFDATA2LSB 6 Type: ET_REL 7 Machine: EM_X86_64 8 Sections: 9 - Name: .data 10 Type: SHT_PROGBITS 11 Flags: [ SHF_ALLOC, SHF_WRITE ] 12 Content: "DEADBEEF" 13 Symbols: 14 Local: 15 - Name: local_symbol 16 Type: STT_OBJECT 17 Section: .data 18 Global: 19 - Name: global_symbol 20 Type: STT_OBJECT 21 Section: .data 22 Weak: 23 - Name: weak_symbol 24 Type: STT_OBJECT 25 Section: .data 26 27 # CHECK: Symbol { 28 # CHECK: Name: (0) 29 # CHECK: Symbol { 30 # CHECK: Name: local_symbol 31 # CHECK: Binding: Local 32 # CHECK: Symbol { 33 # CHECK: Name: global_symbol 34 # CHECK: Binding: Global 35 # CHECK: Symbol { 36 # CHECK: Name: weak_symbol 37 # CHECK: Binding: Weak 38