1# RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o %t.o
2# RUN: llvm-readelf -S %t.o | FileCheck %s
3
4## Check we add SHF_EXCLUDE flag for .dwo debug sections.
5# CHECK: .debug_info.dwo        {{.*}} E
6# CHECK: .debug_types.dwo       {{.*}} E
7# CHECK: .debug_abbrev.dwo      {{.*}} E
8# CHECK: .debug_str.dwo         {{.*}} MSE
9# CHECK: .debug_line.dwo        {{.*}} E
10# CHECK: .debug_loc.dwo         {{.*}} E
11# CHECK: .debug_str_offsets.dwo {{.*}} E
12
13.section .debug_info.dwo,"e"
14nop
15
16.section .debug_types.dwo,"e"
17nop
18
19.section .debug_abbrev.dwo,"e"
20nop
21
22.section .debug_str.dwo,"MSe",@progbits,1
23nop
24
25.section .debug_line.dwo,"e"
26nop
27
28.section .debug_loc.dwo,"e"
29nop
30
31.section .debug_str_offsets.dwo,"e"
32nop
33