1 # RUN: llvm-objcopy --extract-dwo %p/Inputs/dwarf.dwo %t
2 # RUN: llvm-objcopy --strip-dwo %p/Inputs/dwarf.dwo %t2
3 # RUN: llvm-objcopy --split-dwo=%t3 %p/Inputs/dwarf.dwo %t4
4 # RUN: llvm-readobj --file-headers --sections %t | FileCheck %s --check-prefix=DWARF
5 # RUN: llvm-readobj --file-headers --sections %t2 | FileCheck %s --check-prefix=STRIP
9 #DWARF: SectionHeaderCount: 8
11 #DWARF: Name: .debug_loc.dwo
12 #DWARF: Name: .debug_str.dwo
13 #DWARF: Name: .debug_str_offsets.dwo
14 #DWARF: Name: .debug_info.dwo
15 #DWARF: Name: .debug_abbrev.dwo
16 #DWARF: Name: .debug_line.dwo
19 #STRIP: SectionHeaderCount: 24
22 #STRIP: Name: .rodata.str1.1
23 #STRIP: Name: .debug_str
24 #STRIP: Name: .debug_abbrev
25 #STRIP: Name: .debug_info
26 #STRIP: Name: .debug_ranges
27 #STRIP: Name: .debug_macinfo
28 #STRIP: Name: .debug_addr
29 #STRIP: Name: .debug_pubnames
30 #STRIP: Name: .debug_pubtypes
31 #STRIP: Name: .comment
32 #STRIP: Name: .note.GNU-stack
33 #STRIP: Name: .debug_frame
34 #STRIP: Name: .debug_line
36 #STRIP: Name: .rela.text
37 #STRIP: Name: .rela.debug_info
38 #STRIP: Name: .rela.debug_addr
39 #STRIP: Name: .rela.debug_pubnames
40 #STRIP: Name: .rela.debug_pubtypes
41 #STRIP: Name: .rela.debug_frame
42 #STRIP: Name: .rela.debug_line