1 # RUN: yaml2obj %s > %t 2 # RUN: llvm-objcopy %t %t2 3 # RUN: llvm-readobj -symbols %t2 | FileCheck %s 4 5 !ELF 6 FileHeader: 7 Class: ELFCLASS64 8 Data: ELFDATA2LSB 9 Type: ET_EXEC 10 Machine: EM_X86_64 11 Symbols: 12 Global: 13 - Name: test 14 Index: SHN_ABS 15 Value: 0x1234 16 17 #CHECK: Symbols [ 18 #CHECK-NEXT: Symbol { 19 #CHECK-NEXT: Name: 20 #CHECK-NEXT: Value: 0x0 21 #CHECK-NEXT: Size: 0 22 #CHECK-NEXT: Binding: Local (0x0) 23 #CHECK-NEXT: Type: None (0x0) 24 #CHECK-NEXT: Other: 0 25 #CHECK-NEXT: Section: Undefined (0x0) 26 #CHECK-NEXT: } 27 #CHECK-NEXT: Symbol { 28 #CHECK-NEXT: Name: test 29 #CHECK-NEXT: Value: 0x1234 30 #CHECK-NEXT: Size: 0 31 #CHECK-NEXT: Binding: Global (0x1) 32 #CHECK-NEXT: Type: None (0x0) 33 #CHECK-NEXT: Other: 0 34 #CHECK-NEXT: Section: Absolute (0xFFF1) 35 #CHECK-NEXT: } 36 #CHECK-NEXT:] 37