1/* Copyright (C) 2012-2020 Free Software Foundation, Inc. 2 3 This program is free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License as published by 5 the Free Software Foundation; either version 3 of the License, or 6 (at your option) any later version. 7 8 This program is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License 14 along with this program. If not, see <http://www.gnu.org/licenses/>. 15 16 This was created using gcc -g -dA dw2-error.c, then hand-editing 17 it to change the DWARF version. 18 19 */ 20 21 .file "dw2-error.c" 22 .text 23.Ltext0: 24 .globl main 25 .type main, @function 26main: 27.LFB0: 28 .file 1 "dw2-error.c" 29 # dw2-error.c:19 30 .loc 1 19 0 31 .cfi_startproc 32 # basic block 2 33 pushq %rbp 34 .cfi_def_cfa_offset 16 35 .cfi_offset 6, -16 36 movq %rsp, %rbp 37 .cfi_def_cfa_register 6 38 # dw2-error.c:20 39 .loc 1 20 0 40 movl $23, %eax 41 # dw2-error.c:21 42 .loc 1 21 0 43 popq %rbp 44 .cfi_def_cfa 7, 8 45 ret 46 .cfi_endproc 47.LFE0: 48 .size main, .-main 49.Letext0: 50 .section .debug_info,"",@progbits 51.Ldebug_info0: 52 .long 0x4e # Length of Compilation Unit Info 53 .value 0x99 # DWARF version number 54 .long .Ldebug_abbrev0 # Offset Into Abbrev. Section 55 .byte 0x8 # Pointer Size (in bytes) 56 .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) 57 .long .LASF0 # DW_AT_producer: "GNU C 4.6.3 20120306 (Red Hat 4.6.3-2) -mtune=generic -march=x86-64 -g" 58 .byte 0x1 # DW_AT_language 59 .long .LASF1 # DW_AT_name: "dw2-error.c" 60 .long .LASF2 # DW_AT_comp_dir: "/tmp" 61 .quad .Ltext0 # DW_AT_low_pc 62 .quad .Letext0 # DW_AT_high_pc 63 .long .Ldebug_line0 # DW_AT_stmt_list 64 .uleb128 0x2 # (DIE (0x2d) DW_TAG_subprogram) 65 # DW_AT_external 66 .long .LASF3 # DW_AT_name: "main" 67 .byte 0x1 # DW_AT_decl_file (dw2-error.c) 68 .byte 0x12 # DW_AT_decl_line 69 .long 0x4a # DW_AT_type 70 .quad .LFB0 # DW_AT_low_pc 71 .quad .LFE0 # DW_AT_high_pc 72 .uleb128 0x1 # DW_AT_frame_base 73 .byte 0x9c # DW_OP_call_frame_cfa 74 # DW_AT_GNU_all_call_sites 75 .uleb128 0x3 # (DIE (0x4a) DW_TAG_base_type) 76 .byte 0x4 # DW_AT_byte_size 77 .byte 0x5 # DW_AT_encoding 78 .ascii "int\0" # DW_AT_name 79 .byte 0 # end of children of DIE 0xb 80 .section .debug_abbrev,"",@progbits 81.Ldebug_abbrev0: 82 .uleb128 0x1 # (abbrev code) 83 .uleb128 0x11 # (TAG: DW_TAG_compile_unit) 84 .byte 0x1 # DW_children_yes 85 .uleb128 0x25 # (DW_AT_producer) 86 .uleb128 0xe # (DW_FORM_strp) 87 .uleb128 0x13 # (DW_AT_language) 88 .uleb128 0xb # (DW_FORM_data1) 89 .uleb128 0x3 # (DW_AT_name) 90 .uleb128 0xe # (DW_FORM_strp) 91 .uleb128 0x1b # (DW_AT_comp_dir) 92 .uleb128 0xe # (DW_FORM_strp) 93 .uleb128 0x11 # (DW_AT_low_pc) 94 .uleb128 0x1 # (DW_FORM_addr) 95 .uleb128 0x12 # (DW_AT_high_pc) 96 .uleb128 0x1 # (DW_FORM_addr) 97 .uleb128 0x10 # (DW_AT_stmt_list) 98 .uleb128 0x17 # (DW_FORM_sec_offset) 99 .byte 0 100 .byte 0 101 .uleb128 0x2 # (abbrev code) 102 .uleb128 0x2e # (TAG: DW_TAG_subprogram) 103 .byte 0 # DW_children_no 104 .uleb128 0x3f # (DW_AT_external) 105 .uleb128 0x19 # (DW_FORM_flag_present) 106 .uleb128 0x3 # (DW_AT_name) 107 .uleb128 0xe # (DW_FORM_strp) 108 .uleb128 0x3a # (DW_AT_decl_file) 109 .uleb128 0xb # (DW_FORM_data1) 110 .uleb128 0x3b # (DW_AT_decl_line) 111 .uleb128 0xb # (DW_FORM_data1) 112 .uleb128 0x49 # (DW_AT_type) 113 .uleb128 0x13 # (DW_FORM_ref4) 114 .uleb128 0x11 # (DW_AT_low_pc) 115 .uleb128 0x1 # (DW_FORM_addr) 116 .uleb128 0x12 # (DW_AT_high_pc) 117 .uleb128 0x1 # (DW_FORM_addr) 118 .uleb128 0x40 # (DW_AT_frame_base) 119 .uleb128 0x18 # (DW_FORM_exprloc) 120 .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) 121 .uleb128 0x19 # (DW_FORM_flag_present) 122 .byte 0 123 .byte 0 124 .uleb128 0x3 # (abbrev code) 125 .uleb128 0x24 # (TAG: DW_TAG_base_type) 126 .byte 0 # DW_children_no 127 .uleb128 0xb # (DW_AT_byte_size) 128 .uleb128 0xb # (DW_FORM_data1) 129 .uleb128 0x3e # (DW_AT_encoding) 130 .uleb128 0xb # (DW_FORM_data1) 131 .uleb128 0x3 # (DW_AT_name) 132 .uleb128 0x8 # (DW_FORM_string) 133 .byte 0 134 .byte 0 135 .byte 0 136 .section .debug_aranges,"",@progbits 137 .long 0x2c # Length of Address Ranges Info 138 .value 0x2 # DWARF Version 139 .long .Ldebug_info0 # Offset of Compilation Unit Info 140 .byte 0x8 # Size of Address 141 .byte 0 # Size of Segment Descriptor 142 .value 0 # Pad to 16 byte boundary 143 .value 0 144 .quad .Ltext0 # Address 145 .quad .Letext0-.Ltext0 # Length 146 .quad 0 147 .quad 0 148 .section .debug_line,"",@progbits 149.Ldebug_line0: 150 .section .debug_str,"MS",@progbits,1 151.LASF0: 152 .string "GNU C 4.6.3 20120306 (Red Hat 4.6.3-2) -mtune=generic -march=x86-64 -g" 153.LASF2: 154 .string "/tmp" 155.LASF3: 156 .string "main" 157.LASF1: 158 .string "dw2-error.c" 159 .ident "GCC: (GNU) 4.6.3 20120306 (Red Hat 4.6.3-2)" 160 .section .note.GNU-stack,"",@progbits 161