1 # RUN: llvm-mc --dwarf-version=5 < %s -filetype obj -triple x86_64-pc-linux -o - | \
2 # RUN: llvm-dwarfdump - | FileCheck %s
4 # CHECK: DW_AT_low_pc (DW_OP_const4u 0x0)
8 .globl _Z2f1v # -- Begin function _Z2f1v
10 .type _Z2f1v,@function
13 .file 0 "/usr/local/google/home/blaikie/dev/scratch" "test.cpp" md5 0x74f7c574cd1ba04403967d02e757afeb
14 .loc 0 1 0 # test.cpp:1:0
18 .cfi_def_cfa_offset 16
21 .cfi_def_cfa_register %rbp
23 .loc 0 2 1 prologue_end # test.cpp:2:1
29 .size _Z2f1v, .Lfunc_end0-_Z2f1v
32 .section .debug_str_offsets,"",@progbits
37 .section .debug_str,"MS",@progbits,1
39 .asciz "clang version 10.0.0 (git@github.com:llvm/llvm-project.git bf71564a526196f94cdde813063c8b1ff665fde7)" # string offset=0
41 .asciz "test.cpp" # string offset=101
43 .asciz "/usr/local/google/home/blaikie/dev/scratch" # string offset=110
45 .asciz "_Z2f1v" # string offset=153
47 .asciz "f1" # string offset=160
48 .section .debug_str_offsets,"",@progbits
54 .section .debug_abbrev,"",@progbits
55 .byte 1 # Abbreviation Code
56 .byte 17 # DW_TAG_compile_unit
57 .byte 0 # DW_CHILDREN_no
58 .byte 37 # DW_AT_producer
59 .byte 37 # DW_FORM_strx1
60 .byte 19 # DW_AT_language
61 .byte 5 # DW_FORM_data2
63 .byte 37 # DW_FORM_strx1
64 .byte 114 # DW_AT_str_offsets_base
65 .byte 23 # DW_FORM_sec_offset
66 .byte 16 # DW_AT_stmt_list
67 .byte 23 # DW_FORM_sec_offset
68 .byte 27 # DW_AT_comp_dir
69 .byte 37 # DW_FORM_strx1
70 .byte 17 # DW_AT_low_pc
71 .byte 24 # DW_FORM_exprloc
72 .byte 18 # DW_AT_high_pc
73 .byte 6 # DW_FORM_data4
77 .section .debug_info,"",@progbits
79 .long .Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
81 .short 5 # DWARF version number
82 .byte 1 # DWARF Unit Type
83 .byte 8 # Address Size (in bytes)
84 .long .debug_abbrev # Offset Into Abbrev. Section
85 .byte 1 # Abbrev [1] 0xc:0x38 DW_TAG_compile_unit
86 .byte 0 # DW_AT_producer
87 .short 33 # DW_AT_language
89 .long .Lstr_offsets_base0 # DW_AT_str_offsets_base
90 .long .Lline_table_start0 # DW_AT_stmt_list
91 .byte 2 # DW_AT_comp_dir
92 .byte 5 # DW_AT_low_pc
95 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc
97 .ident "clang version 10.0.0 (git@github.com:llvm/llvm-project.git bf71564a526196f94cdde813063c8b1ff665fde7)"
98 .section ".note.GNU-stack","",@progbits
100 .section .debug_line,"",@progbits