1# RUN: yaml2obj %s -o %t 2# RUN: llvm-nm --no-sort %t | FileCheck %s 3 4# CHECK: r myrodata0_local 5# CHECK-NEXT: r myrodata1_local 6# CHECK-NEXT: r myrodata2_local 7# CHECK-NEXT: R myrodata0_global 8# CHECK-NEXT: R myrodata1_global 9# CHECK-NEXT: R myrodata2_global 10 11!ELF 12FileHeader: 13 Class: ELFCLASS64 14 Data: ELFDATA2LSB 15 Type: ET_EXEC 16 Machine: EM_X86_64 17Sections: 18 - Name: myrodata0 19 Type: SHT_PROGBITS 20 Flags: [ SHF_ALLOC ] 21 - Name: myrodata1 22 Type: SHT_PROGBITS 23 Flags: [ SHF_ALLOC, SHF_MERGE ] 24 - Name: myrodata2 25 Type: SHT_PROGBITS 26 Flags: [ SHF_ALLOC, SHF_MERGE, SHF_STRINGS ] 27Symbols: 28 - Name: myrodata0_local 29 Section: myrodata0 30 - Name: myrodata1_local 31 Section: myrodata1 32 - Name: myrodata2_local 33 Section: myrodata2 34 35 - Name: myrodata0_global 36 Binding: STB_GLOBAL 37 Section: myrodata0 38 - Name: myrodata1_global 39 Binding: STB_GLOBAL 40 Section: myrodata1 41 - Name: myrodata2_global 42 Binding: STB_GLOBAL 43 Section: myrodata2 44