1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-objcopy -R .test %t %t2
3 # RUN: llvm-readobj --file-headers --symbols %t2 | FileCheck %s
31 # The sections counted here should be .test, .symtab, .strtab, and .shstrtab.
32 # The 5th section is the null section.
33 #CHECK: SectionHeaderCount: 5
38 #CHECK-NEXT: Value: 0x0
40 #CHECK-NEXT: Binding: Local
41 #CHECK-NEXT: Type: None
43 #CHECK-NEXT: Section: Undefined
46 #CHECK-NEXT: Name: test2
47 #CHECK-NEXT: Value: 0x1000
49 #CHECK-NEXT: Binding: Global
50 #CHECK-NEXT: Type: Function
52 #CHECK-NEXT: Section: .test2