2 # RUN: llvm-mc -triple=x86_64-pc-linux-gnu -filetype=obj -o %t %s
3 # RUN: llvm-jitlink -debug-only=jitlink -noexec %t 2>&1 | FileCheck %s
5 # Check that debug sections are not emitted.
7 # CHECK: ".debug_info" is a debug section: No graph section will be created.
10 .file "ELF_skip_debug_sections.c"
16 .file 1 "/tmp" "ELF_skip_debug_sections.c"
20 .loc 1 2 3 prologue_end
25 .size foo, .Lfunc_end0-foo
38 .loc 1 6 3 prologue_end
43 .size main, .Lfunc_end1-main
46 .section .debug_str,"MS",@progbits,1
48 .asciz "clang version 10.0.0-4ubuntu1 "
50 .asciz "ELF_skip_debug_sections.c"
65 .section .debug_abbrev,"",@progbits
169 .section .debug_info,"",@progbits
171 .long .Ldebug_info_end0-.Ldebug_info_start0
180 .long .Lline_table_start0
183 .long .Lfunc_end1-.Lfunc_begin0
186 .long .Lfunc_end0-.Lfunc_begin0
198 .long .Lfunc_end1-.Lfunc_begin1
237 .ident "clang version 10.0.0-4ubuntu1 "
238 .section ".note.GNU-stack","",@progbits
240 .section .debug_line,"",@progbits