xref: /llvm-project/llvm/test/MC/ELF/exclude-debug-dwo.s (revision 75af9da755721123e62b45cd0bc0c5e688a9722a)
1ce95ac64SGeorge Rimar# RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o %t.o
297c17e83SFangrui Song# RUN: llvm-readelf -S %t.o | FileCheck %s
3ce95ac64SGeorge Rimar
4ce95ac64SGeorge Rimar## Check we add SHF_EXCLUDE flag for .dwo debug sections.
5ce95ac64SGeorge Rimar# CHECK: .debug_info.dwo        {{.*}} E
6ce95ac64SGeorge Rimar# CHECK: .debug_types.dwo       {{.*}} E
7ce95ac64SGeorge Rimar# CHECK: .debug_abbrev.dwo      {{.*}} E
8422b078cSGeorgii Rymar# CHECK: .debug_str.dwo         {{.*}} MSE
9ce95ac64SGeorge Rimar# CHECK: .debug_line.dwo        {{.*}} E
10ce95ac64SGeorge Rimar# CHECK: .debug_loc.dwo         {{.*}} E
11ce95ac64SGeorge Rimar# CHECK: .debug_str_offsets.dwo {{.*}} E
12ce95ac64SGeorge Rimar
13*75af9da7SFangrui Song.section .debug_info.dwo,"e"
14ce95ac64SGeorge Rimarnop
15ce95ac64SGeorge Rimar
16*75af9da7SFangrui Song.section .debug_types.dwo,"e"
17ce95ac64SGeorge Rimarnop
18ce95ac64SGeorge Rimar
19*75af9da7SFangrui Song.section .debug_abbrev.dwo,"e"
20ce95ac64SGeorge Rimarnop
21ce95ac64SGeorge Rimar
22*75af9da7SFangrui Song.section .debug_str.dwo,"MSe",@progbits,1
23ce95ac64SGeorge Rimarnop
24ce95ac64SGeorge Rimar
25*75af9da7SFangrui Song.section .debug_line.dwo,"e"
26ce95ac64SGeorge Rimarnop
27ce95ac64SGeorge Rimar
28*75af9da7SFangrui Song.section .debug_loc.dwo,"e"
29ce95ac64SGeorge Rimarnop
30ce95ac64SGeorge Rimar
31*75af9da7SFangrui Song.section .debug_str_offsets.dwo,"e"
32ce95ac64SGeorge Rimarnop
33