1# RUN: yaml2obj %s -o %t 2# RUN: llvm-readelf -s %t | FileCheck %s 3 4!ELF 5FileHeader: 6 Class: ELFCLASS64 7 Data: ELFDATA2LSB 8 Type: ET_EXEC 9Sections: 10 - Name: .text 11 Type: SHT_PROGBITS 12Symbols: 13 - Name: absolute1 14 Index: SHN_ABS 15 Value: 0x1234 16 Binding: STB_GLOBAL 17 - Name: absolute2 18 Index: 0xfff1 19 Value: 0x4321 20 Binding: STB_GLOBAL 21 - Name: common1 22 Index: SHN_COMMON 23 Binding: STB_GLOBAL 24 - Name: common2 25 Index: 0xfff2 26 Binding: STB_GLOBAL 27 - Name: good 28 Index: 0x1 29 Binding: STB_GLOBAL 30 - Name: bad 31 Index: 0x42 32 Binding: STB_GLOBAL 33 - Name: undef1 34 Index: SHN_UNDEF 35 Binding: STB_GLOBAL 36 - Name: undef2 37 Index: 0 38 Binding: STB_GLOBAL 39 40# CHECK: Symbol table '.symtab' contains 9 entries 41# CHECK-NEXT: Num: {{.*}} Ndx Name 42# CHECK-NEXT: 0: {{.*}} UND 43# CHECK-NEXT: 1: {{.*}} ABS absolute1 44# CHECK-NEXT: 2: {{.*}} ABS absolute2 45# CHECK-NEXT: 3: {{.*}} COM common1 46# CHECK-NEXT: 4: {{.*}} COM common2 47# CHECK-NEXT: 5: {{.*}} 1 good 48# CHECK-NEXT: 6: {{.*}} 66 bad 49# CHECK-NEXT: 7: {{.*}} UND undef1 50# CHECK-NEXT: 8: {{.*}} UND undef2 51