82 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux -o %t %s3# RUN: ld.lld --gdb-index --gc-sections -o %t2 %t4# RUN: llvm-dwarfdump -gdb-index %t2 | FileCheck %s5 6# CHECK: Address area offset = 0x28, has 0 entries:7 8# Generated with: (clang r302976)9# echo "void _start() { __builtin_unreachable(); }" | \10# clang -Os -g -S -o gdb-index-empty.s -x c - -Xclang -fdebug-compilation-dir -Xclang .11 12.text13.globl _start14.type _start,@function15_start:16.Lfunc_begin0:17.Lfunc_end0:18 19.section .debug_abbrev,"",@progbits20 .byte 1 # Abbreviation Code21 .byte 17 # DW_TAG_compile_unit22 .byte 1 # DW_CHILDREN_yes23 .byte 37 # DW_AT_producer24 .byte 14 # DW_FORM_strp25 .byte 19 # DW_AT_language26 .byte 5 # DW_FORM_data227 .byte 3 # DW_AT_name28 .byte 14 # DW_FORM_strp29 .byte 16 # DW_AT_stmt_list30 .byte 23 # DW_FORM_sec_offset31 .byte 27 # DW_AT_comp_dir32 .byte 14 # DW_FORM_strp33 .byte 17 # DW_AT_low_pc34 .byte 1 # DW_FORM_addr35 .byte 18 # DW_AT_high_pc36 .byte 6 # DW_FORM_data437 .byte 0 # EOM(1)38 .byte 0 # EOM(2)39 .byte 2 # Abbreviation Code40 .byte 46 # DW_TAG_subprogram41 .byte 0 # DW_CHILDREN_no42 .byte 17 # DW_AT_low_pc43 .byte 1 # DW_FORM_addr44 .byte 18 # DW_AT_high_pc45 .byte 6 # DW_FORM_data446 .byte 64 # DW_AT_frame_base47 .byte 24 # DW_FORM_exprloc48 .byte 3 # DW_AT_name49 .byte 14 # DW_FORM_strp50 .byte 58 # DW_AT_decl_file51 .byte 11 # DW_FORM_data152 .byte 59 # DW_AT_decl_line53 .byte 11 # DW_FORM_data154 .byte 63 # DW_AT_external55 .byte 25 # DW_FORM_flag_present56 .byte 0 # EOM(1)57 .byte 0 # EOM(2)58 .byte 0 # EOM(3)59 60.section .debug_info,"",@progbits61 .long 60 # Length of Unit62 .short 4 # DWARF version number63 .long .debug_abbrev # Offset Into Abbrev. Section64 .byte 8 # Address Size (in bytes)65 .byte 1 # Abbrev [1] 0xb:0x35 DW_TAG_compile_unit66 .long 0 # DW_AT_producer67 .short 12 # DW_AT_language68 .long 0 # DW_AT_name69 .long 0 # DW_AT_stmt_list70 .long 0 # DW_AT_comp_dir71 .quad .Lfunc_begin0 # DW_AT_low_pc72 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc73 .byte 2 # Abbrev [2] 0x2a:0x15 DW_TAG_subprogram74 .quad .Lfunc_begin0 # DW_AT_low_pc75 .long .Lfunc_end0-.Lfunc_begin0 # DW_AT_high_pc76 .byte 1 # DW_AT_frame_base77 .byte 8778 .long 0 # DW_AT_name79 .byte 1 # DW_AT_decl_file80 .byte 1 # DW_AT_decl_line81 .byte 0 # End Of Children Mark82