1/* This testcase is part of GDB, the GNU debugger. 2 3 Copyright 2013-2020 Free Software Foundation, Inc. 4 5 This program is free software; you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation; either version 3 of the License, or 8 (at your option) any later version. 9 10 This program is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 This file was created by doing: 19 gcc -O1 -gdwarf-4 -gsplit-debug -fPIE -S -dA fission-loclists-pie.c 20 and then massaging the output. 21 22 fission-loclists-pie.c: 23 24 __attribute__((noinline)) int 25 init (int *b) 26 { 27 return 0; 28 } 29 30 int 31 main (int argc, char *argv[]) 32 { 33 return init (&argc); 34 } 35*/ 36 37 .file "fission-loclists-pie.c" 38 .text 39.Ltext0: 40 .globl init 41 .type init, @function 42init: 43.LFB0: 44 .file 1 "testsuite/gdb.dwarf2/fission-loclists-pie.c" 45 # testsuite/gdb.dwarf2/fission-loclists-pie.c:22 46 .loc 1 22 0 47 .cfi_startproc 48.LVL0: 49# BLOCK 2 freq:10000 seq:0 50# PRED: ENTRY [100.0%] (FALLTHRU) 51 # testsuite/gdb.dwarf2/fission-loclists-pie.c:24 52 .loc 1 24 0 53 movl $0, %eax 54# SUCC: EXIT [100.0%] 55 ret 56 .cfi_endproc 57.LFE0: 58 .size init, .-init 59 .globl main 60 .type main, @function 61main: 62.LFB1: 63 # testsuite/gdb.dwarf2/fission-loclists-pie.c:28 64 .loc 1 28 0 65 .cfi_startproc 66.LVL1: 67# BLOCK 2 freq:10000 seq:0 68# PRED: ENTRY [100.0%] (FALLTHRU) 69 subq $8, %rsp 70 .cfi_def_cfa_offset 16 71 # testsuite/gdb.dwarf2/fission-loclists-pie.c:29 72 .loc 1 29 0 73 leaq 4(%rsp), %rdi 74.LVL2: 75 call init 76.LVL3: 77 # testsuite/gdb.dwarf2/fission-loclists-pie.c:30 78 .loc 1 30 0 79 addq $8, %rsp 80 .cfi_def_cfa_offset 8 81# SUCC: EXIT [100.0%] 82 ret 83 .cfi_endproc 84.LFE1: 85 .size main, .-main 86.Letext0: 87 .section .debug_addr,"",@progbits 88.Ldebug_addr0: 89 .quad .LVL1 # 0x0 90 .quad .LVL2 # 0x1 91 .quad .LVL3 # 0x2 92 .quad .LFB0 # 0x3 93 .quad .LFB1 # 0x4 94 .quad .LVL3-1 # 0x5 95 .section .debug_info.dwo,"e",@progbits 96.Ldebug_info0: 97 .long 0x91 # Length of Compilation Unit Info 98 .value 0x4 # DWARF version number 99 .long .Ldebug_abbrev0 # Offset Into Abbrev. Section 100 .byte 0x8 # Pointer Size (in bytes) 101 .uleb128 0x1 # (DIE (0xb) DW_TAG_compile_unit) 102 .uleb128 0x4 # DW_AT_producer: "GNU C 4.9.x -m64 -mtune=generic -march=x86-64 -gdwarf-4 -gsplit-dwarf -O1 -fPIE" 103 .byte 0x1 # DW_AT_language 104 .uleb128 0x6 # DW_AT_name: "testsuite/gdb.dwarf2/fission-loclists-pie.c" 105 .byte 0xed # DW_AT_GNU_dwo_id 106 .byte 0x50 107 .byte 0xa4 108 .byte 0xe0 109 .byte 0xc9 110 .byte 0xf8 111 .byte 0xd3 112 .byte 0xf0 113 .uleb128 0x2 # (DIE (0x17) DW_TAG_subprogram) 114 # DW_AT_external 115 .uleb128 0x5 # DW_AT_name: "init" 116 .byte 0x1 # DW_AT_decl_file (testsuite/gdb.dwarf2/fission-loclists-pie.c) 117 .byte 0x15 # DW_AT_decl_line 118 # DW_AT_prototyped 119 .long 0x3a # DW_AT_type 120 .uleb128 0x3 # DW_AT_low_pc 121 .quad .LFE0-.LFB0 # DW_AT_high_pc 122 .uleb128 0x1 # DW_AT_frame_base 123 .byte 0x9c # DW_OP_call_frame_cfa 124 # DW_AT_GNU_all_call_sites 125 .long 0x3a # DW_AT_sibling 126 .uleb128 0x3 # (DIE (0x2e) DW_TAG_formal_parameter) 127 .ascii "b\0" # DW_AT_name 128 .byte 0x1 # DW_AT_decl_file (testsuite/gdb.dwarf2/fission-loclists-pie.c) 129 .byte 0x15 # DW_AT_decl_line 130 .long 0x41 # DW_AT_type 131 .uleb128 0x1 # DW_AT_location 132 .byte 0x55 # DW_OP_reg5 133 .byte 0 # end of children of DIE 0x17 134 .uleb128 0x4 # (DIE (0x3a) DW_TAG_base_type) 135 .byte 0x4 # DW_AT_byte_size 136 .byte 0x5 # DW_AT_encoding 137 .ascii "int\0" # DW_AT_name 138 .uleb128 0x5 # (DIE (0x41) DW_TAG_pointer_type) 139 .byte 0x8 # DW_AT_byte_size 140 .long 0x3a # DW_AT_type 141 .uleb128 0x2 # (DIE (0x47) DW_TAG_subprogram) 142 # DW_AT_external 143 .uleb128 0x2 # DW_AT_name: "main" 144 .byte 0x1 # DW_AT_decl_file (testsuite/gdb.dwarf2/fission-loclists-pie.c) 145 .byte 0x1b # DW_AT_decl_line 146 # DW_AT_prototyped 147 .long 0x3a # DW_AT_type 148 .uleb128 0x4 # DW_AT_low_pc 149 .quad .LFE1-.LFB1 # DW_AT_high_pc 150 .uleb128 0x1 # DW_AT_frame_base 151 .byte 0x9c # DW_OP_call_frame_cfa 152 # DW_AT_GNU_all_call_sites 153 .long 0x84 # DW_AT_sibling 154 .uleb128 0x6 # (DIE (0x5e) DW_TAG_formal_parameter) 155 .uleb128 0x1 # DW_AT_name: "argc" 156 .byte 0x1 # DW_AT_decl_file (testsuite/gdb.dwarf2/fission-loclists-pie.c) 157 .byte 0x1b # DW_AT_decl_line 158 .long 0x3a # DW_AT_type 159 .long .LLST0-.Ldebug_loc0 # DW_AT_location 160 .uleb128 0x6 # (DIE (0x6a) DW_TAG_formal_parameter) 161 .uleb128 0 # DW_AT_name: "argv" 162 .byte 0x1 # DW_AT_decl_file (testsuite/gdb.dwarf2/fission-loclists-pie.c) 163 .byte 0x1b # DW_AT_decl_line 164 .long 0x84 # DW_AT_type 165 .long .LLST1-.Ldebug_loc0 # DW_AT_location 166 .uleb128 0x7 # (DIE (0x76) DW_TAG_GNU_call_site) 167 .uleb128 0x2 # DW_AT_low_pc 168 .long 0x17 # DW_AT_abstract_origin 169 .uleb128 0x8 # (DIE (0x7c) DW_TAG_GNU_call_site_parameter) 170 .uleb128 0x1 # DW_AT_location 171 .byte 0x55 # DW_OP_reg5 172 .uleb128 0x2 # DW_AT_GNU_call_site_value 173 .byte 0x91 # DW_OP_fbreg 174 .sleb128 -12 175 .byte 0 # end of children of DIE 0x76 176 .byte 0 # end of children of DIE 0x47 177 .uleb128 0x5 # (DIE (0x84) DW_TAG_pointer_type) 178 .byte 0x8 # DW_AT_byte_size 179 .long 0x8a # DW_AT_type 180 .uleb128 0x5 # (DIE (0x8a) DW_TAG_pointer_type) 181 .byte 0x8 # DW_AT_byte_size 182 .long 0x90 # DW_AT_type 183 .uleb128 0x9 # (DIE (0x90) DW_TAG_base_type) 184 .byte 0x1 # DW_AT_byte_size 185 .byte 0x6 # DW_AT_encoding 186 .uleb128 0x3 # DW_AT_name: "char" 187 .byte 0 # end of children of DIE 0xb 188 .section .debug_info,"",@progbits 189.Lskeleton_debug_info0: 190 .long 0x30 # Length of Compilation Unit Info 191 .value 0x4 # DWARF version number 192 .long .Lskeleton_debug_abbrev0 # Offset Into Abbrev. Section 193 .byte 0x8 # Pointer Size (in bytes) 194 .uleb128 0x1 # (DIE (0) DW_TAG_compile_unit) 195 .quad .Ltext0 # DW_AT_low_pc 196 .quad .Letext0-.Ltext0 # DW_AT_high_pc 197 .long .Ldebug_line0 # DW_AT_stmt_list 198 .long .LASF0 # DW_AT_GNU_dwo_name: "fission-loclists-pie.dwo" 199 .long .LASF1 # DW_AT_comp_dir: "/tmp/19999/obj64/gdb/testsuite" 200 # DW_AT_GNU_pubnames 201 .long .Ldebug_addr0 # DW_AT_GNU_addr_base 202 .byte 0xed # DW_AT_GNU_dwo_id 203 .byte 0x50 204 .byte 0xa4 205 .byte 0xe0 206 .byte 0xc9 207 .byte 0xf8 208 .byte 0xd3 209 .byte 0xf0 210 .section .debug_abbrev,"",@progbits 211.Lskeleton_debug_abbrev0: 212 .uleb128 0x1 # (abbrev code) 213 .uleb128 0x11 # (TAG: DW_TAG_compile_unit) 214 .byte 0 # DW_children_no 215 .uleb128 0x11 # (DW_AT_low_pc) 216 .uleb128 0x1 # (DW_FORM_addr) 217 .uleb128 0x12 # (DW_AT_high_pc) 218 .uleb128 0x7 # (DW_FORM_data8) 219 .uleb128 0x10 # (DW_AT_stmt_list) 220 .uleb128 0x17 # (DW_FORM_sec_offset) 221 .uleb128 0x2130 # (DW_AT_GNU_dwo_name) 222 .uleb128 0xe # (DW_FORM_strp) 223 .uleb128 0x1b # (DW_AT_comp_dir) 224 .uleb128 0xe # (DW_FORM_strp) 225 .uleb128 0x2134 # (DW_AT_GNU_pubnames) 226 .uleb128 0x19 # (DW_FORM_flag_present) 227 .uleb128 0x2133 # (DW_AT_GNU_addr_base) 228 .uleb128 0x17 # (DW_FORM_sec_offset) 229 .uleb128 0x2131 # (DW_AT_GNU_dwo_id) 230 .uleb128 0x7 # (DW_FORM_data8) 231 .byte 0 232 .byte 0 233 .byte 0 # end of skeleton .debug_abbrev 234 .section .debug_abbrev.dwo,"e",@progbits 235.Ldebug_abbrev0: 236 .uleb128 0x1 # (abbrev code) 237 .uleb128 0x11 # (TAG: DW_TAG_compile_unit) 238 .byte 0x1 # DW_children_yes 239 .uleb128 0x25 # (DW_AT_producer) 240 .uleb128 0x1f02 # (DW_FORM_GNU_str_index) 241 .uleb128 0x13 # (DW_AT_language) 242 .uleb128 0xb # (DW_FORM_data1) 243 .uleb128 0x3 # (DW_AT_name) 244 .uleb128 0x1f02 # (DW_FORM_GNU_str_index) 245 .uleb128 0x2131 # (DW_AT_GNU_dwo_id) 246 .uleb128 0x7 # (DW_FORM_data8) 247 .byte 0 248 .byte 0 249 .uleb128 0x2 # (abbrev code) 250 .uleb128 0x2e # (TAG: DW_TAG_subprogram) 251 .byte 0x1 # DW_children_yes 252 .uleb128 0x3f # (DW_AT_external) 253 .uleb128 0x19 # (DW_FORM_flag_present) 254 .uleb128 0x3 # (DW_AT_name) 255 .uleb128 0x1f02 # (DW_FORM_GNU_str_index) 256 .uleb128 0x3a # (DW_AT_decl_file) 257 .uleb128 0xb # (DW_FORM_data1) 258 .uleb128 0x3b # (DW_AT_decl_line) 259 .uleb128 0xb # (DW_FORM_data1) 260 .uleb128 0x27 # (DW_AT_prototyped) 261 .uleb128 0x19 # (DW_FORM_flag_present) 262 .uleb128 0x49 # (DW_AT_type) 263 .uleb128 0x13 # (DW_FORM_ref4) 264 .uleb128 0x11 # (DW_AT_low_pc) 265 .uleb128 0x1f01 # (DW_FORM_GNU_addr_index) 266 .uleb128 0x12 # (DW_AT_high_pc) 267 .uleb128 0x7 # (DW_FORM_data8) 268 .uleb128 0x40 # (DW_AT_frame_base) 269 .uleb128 0x18 # (DW_FORM_exprloc) 270 .uleb128 0x2117 # (DW_AT_GNU_all_call_sites) 271 .uleb128 0x19 # (DW_FORM_flag_present) 272 .uleb128 0x1 # (DW_AT_sibling) 273 .uleb128 0x13 # (DW_FORM_ref4) 274 .byte 0 275 .byte 0 276 .uleb128 0x3 # (abbrev code) 277 .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) 278 .byte 0 # DW_children_no 279 .uleb128 0x3 # (DW_AT_name) 280 .uleb128 0x8 # (DW_FORM_string) 281 .uleb128 0x3a # (DW_AT_decl_file) 282 .uleb128 0xb # (DW_FORM_data1) 283 .uleb128 0x3b # (DW_AT_decl_line) 284 .uleb128 0xb # (DW_FORM_data1) 285 .uleb128 0x49 # (DW_AT_type) 286 .uleb128 0x13 # (DW_FORM_ref4) 287 .uleb128 0x2 # (DW_AT_location) 288 .uleb128 0x18 # (DW_FORM_exprloc) 289 .byte 0 290 .byte 0 291 .uleb128 0x4 # (abbrev code) 292 .uleb128 0x24 # (TAG: DW_TAG_base_type) 293 .byte 0 # DW_children_no 294 .uleb128 0xb # (DW_AT_byte_size) 295 .uleb128 0xb # (DW_FORM_data1) 296 .uleb128 0x3e # (DW_AT_encoding) 297 .uleb128 0xb # (DW_FORM_data1) 298 .uleb128 0x3 # (DW_AT_name) 299 .uleb128 0x8 # (DW_FORM_string) 300 .byte 0 301 .byte 0 302 .uleb128 0x5 # (abbrev code) 303 .uleb128 0xf # (TAG: DW_TAG_pointer_type) 304 .byte 0 # DW_children_no 305 .uleb128 0xb # (DW_AT_byte_size) 306 .uleb128 0xb # (DW_FORM_data1) 307 .uleb128 0x49 # (DW_AT_type) 308 .uleb128 0x13 # (DW_FORM_ref4) 309 .byte 0 310 .byte 0 311 .uleb128 0x6 # (abbrev code) 312 .uleb128 0x5 # (TAG: DW_TAG_formal_parameter) 313 .byte 0 # DW_children_no 314 .uleb128 0x3 # (DW_AT_name) 315 .uleb128 0x1f02 # (DW_FORM_GNU_str_index) 316 .uleb128 0x3a # (DW_AT_decl_file) 317 .uleb128 0xb # (DW_FORM_data1) 318 .uleb128 0x3b # (DW_AT_decl_line) 319 .uleb128 0xb # (DW_FORM_data1) 320 .uleb128 0x49 # (DW_AT_type) 321 .uleb128 0x13 # (DW_FORM_ref4) 322 .uleb128 0x2 # (DW_AT_location) 323 .uleb128 0x17 # (DW_FORM_sec_offset) 324 .byte 0 325 .byte 0 326 .uleb128 0x7 # (abbrev code) 327 .uleb128 0x4109 # (TAG: DW_TAG_GNU_call_site) 328 .byte 0x1 # DW_children_yes 329 .uleb128 0x11 # (DW_AT_low_pc) 330 .uleb128 0x1f01 # (DW_FORM_GNU_addr_index) 331 .uleb128 0x31 # (DW_AT_abstract_origin) 332 .uleb128 0x13 # (DW_FORM_ref4) 333 .byte 0 334 .byte 0 335 .uleb128 0x8 # (abbrev code) 336 .uleb128 0x410a # (TAG: DW_TAG_GNU_call_site_parameter) 337 .byte 0 # DW_children_no 338 .uleb128 0x2 # (DW_AT_location) 339 .uleb128 0x18 # (DW_FORM_exprloc) 340 .uleb128 0x2111 # (DW_AT_GNU_call_site_value) 341 .uleb128 0x18 # (DW_FORM_exprloc) 342 .byte 0 343 .byte 0 344 .uleb128 0x9 # (abbrev code) 345 .uleb128 0x24 # (TAG: DW_TAG_base_type) 346 .byte 0 # DW_children_no 347 .uleb128 0xb # (DW_AT_byte_size) 348 .uleb128 0xb # (DW_FORM_data1) 349 .uleb128 0x3e # (DW_AT_encoding) 350 .uleb128 0xb # (DW_FORM_data1) 351 .uleb128 0x3 # (DW_AT_name) 352 .uleb128 0x1f02 # (DW_FORM_GNU_str_index) 353 .byte 0 354 .byte 0 355 .byte 0 356 .section .debug_loc.dwo,"e",@progbits 357.Ldebug_loc0: 358.LLST0: 359 .byte 0x3 # Location list start/length entry (*.LLST0) 360 .uleb128 0 # Location list range start index (*.LVL1) 361 .long .LVL2-.LVL1 # Location list range length (*.LLST0) 362 .value 0x1 # Location expression size 363 .byte 0x55 # DW_OP_reg5 364 .byte 0x3 # Location list start/length entry (*.LLST0) 365 .uleb128 0x1 # Location list range start index (*.LVL2) 366 .long .LFE1-.LVL2 # Location list range length (*.LLST0) 367 .value 0x4 # Location expression size 368 .byte 0xf3 # DW_OP_GNU_entry_value 369 .uleb128 0x1 370 .byte 0x55 # DW_OP_reg5 371 .byte 0x9f # DW_OP_stack_value 372 .byte 0 # Location list terminator (*.LLST0) 373.LLST1: 374 .byte 0x3 # Location list start/length entry (*.LLST1) 375 .uleb128 0 # Location list range start index (*.LVL1) 376 .long .LVL3-1-.LVL1 # Location list range length (*.LLST1) 377 .value 0x1 # Location expression size 378 .byte 0x54 # DW_OP_reg4 379 .byte 0x3 # Location list start/length entry (*.LLST1) 380 .uleb128 0x5 # Location list range start index (*.LVL3-1) 381 .long .LFE1-.LVL3-1 # Location list range length (*.LLST1) 382 .value 0x4 # Location expression size 383 .byte 0xf3 # DW_OP_GNU_entry_value 384 .uleb128 0x1 385 .byte 0x54 # DW_OP_reg4 386 .byte 0x9f # DW_OP_stack_value 387 .byte 0 # Location list terminator (*.LLST1) 388 .section .debug_gnu_pubnames,"",@progbits 389 .long 0x22 # Pub Info Length 390 .value 0x2 # DWARF Version 391 .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info 392 .long 0x95 # Compilation Unit Length 393 .long 0x17 # DIE offset 394 .byte 0x30 # GDB-index flags 395 .ascii "init\0" # external name 396 .long 0x47 # DIE offset 397 .byte 0x30 # GDB-index flags 398 .ascii "main\0" # external name 399 .long 0 400 .section .debug_gnu_pubtypes,"",@progbits 401 .long 0x21 # Pub Info Length 402 .value 0x2 # DWARF Version 403 .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info 404 .long 0x95 # Compilation Unit Length 405 .long 0x3a # DIE offset 406 .byte 0x90 # GDB-index flags 407 .ascii "int\0" # external name 408 .long 0x90 # DIE offset 409 .byte 0x90 # GDB-index flags 410 .ascii "char\0" # external name 411 .long 0 412 .section .debug_aranges,"",@progbits 413 .long 0x2c # Length of Address Ranges Info 414 .value 0x2 # DWARF Version 415 .long .Lskeleton_debug_info0 # Offset of Compilation Unit Info 416 .byte 0x8 # Size of Address 417 .byte 0 # Size of Segment Descriptor 418 .value 0 # Pad to 16 byte boundary 419 .value 0 420 .quad .Ltext0 # Address 421 .quad .Letext0-.Ltext0 # Length 422 .quad 0 423 .quad 0 424 .section .debug_line,"",@progbits 425.Ldebug_line0: 426 .section .debug_line.dwo,"e",@progbits 427.Lskeleton_debug_line0: 428 .long .LELT0-.LSLT0 # Length of Source Line Info 429.LSLT0: 430 .value 0x4 # DWARF Version 431 .long .LELTP0-.LASLTP0 # Prolog Length 432.LASLTP0: 433 .byte 0x1 # Minimum Instruction Length 434 .byte 0x1 # Maximum Operations Per Instruction 435 .byte 0x1 # Default is_stmt_start flag 436 .byte 0xf6 # Line Base Value (Special Opcodes) 437 .byte 0xf2 # Line Range Value (Special Opcodes) 438 .byte 0xd # Special Opcode Base 439 .byte 0 # opcode: 0x1 has 0 args 440 .byte 0x1 # opcode: 0x2 has 1 args 441 .byte 0x1 # opcode: 0x3 has 1 args 442 .byte 0x1 # opcode: 0x4 has 1 args 443 .byte 0x1 # opcode: 0x5 has 1 args 444 .byte 0 # opcode: 0x6 has 0 args 445 .byte 0 # opcode: 0x7 has 0 args 446 .byte 0 # opcode: 0x8 has 0 args 447 .byte 0x1 # opcode: 0x9 has 1 args 448 .byte 0 # opcode: 0xa has 0 args 449 .byte 0 # opcode: 0xb has 0 args 450 .byte 0x1 # opcode: 0xc has 1 args 451 .ascii "testsuite/gdb.dwarf2\0" # Directory Entry: 0x1 452 .byte 0 # End directory table 453 .ascii "fission-loclists-pie.c\0" # File Entry: 0x1 454 .uleb128 0x1 455 .uleb128 0 456 .uleb128 0 457 .byte 0 # End file name table 458.LELTP0: 459.LELT0: 460 .section .debug_str,"MS",@progbits,1 461.LASF1: 462 .string "/tmp/19999/obj64/gdb/testsuite" 463.LASF0: 464 .string "fission-loclists-pie.dwo" 465 .section .debug_str_offsets.dwo,"e",@progbits 466 .long 0 # indexed string 0x0: argv 467 .long 0x5 # indexed string 0x1: argc 468 .long 0xa # indexed string 0x2: main 469 .long 0xf # indexed string 0x3: char 470 .long 0x14 # indexed string 0x4: GNU C 4.9.x -m64 -mtune=generic -march=x86-64 -gdwarf-4 -gsplit-dwarf -O1 -fPIE 471 .long 0x64 # indexed string 0x5: init 472 .long 0x69 # indexed string 0x6: testsuite/gdb.dwarf2/fission-loclists-pie.c 473 .section .debug_str.dwo,"e",@progbits 474 .string "argv" 475 .string "argc" 476 .string "main" 477 .string "char" 478 .string "GNU C 4.9.x -m64 -mtune=generic -march=x86-64 -gdwarf-4 -gsplit-dwarf -O1 -fPIE" 479 .string "init" 480 .string "testsuite/gdb.dwarf2/fission-loclists-pie.c" 481 .ident "GCC: 4.9.x" 482 .section .note.GNU-stack,"",@progbits 483