File: shared-abbrev.s

package info (click to toggle)
swiftlang 6.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,519,992 kB
  • sloc: cpp: 9,107,863; ansic: 2,040,022; asm: 1,135,751; python: 296,500; objc: 82,456; f90: 60,502; lisp: 34,951; pascal: 19,946; sh: 18,133; perl: 7,482; ml: 4,937; javascript: 4,117; makefile: 3,840; awk: 3,535; xml: 914; fortran: 619; cs: 573; ruby: 573
file content (119 lines) | stat: -rw-r--r-- 4,800 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
# RUN: rm -rf %t
# RUN: mkdir %t
# RUN: llvm-mc -filetype=obj -triple=x86_64 -dwarf-version=4 %s -o %t/shared-abbrev.o
# RUN: %clang %cflags %t/shared-abbrev.o -o %t/shared-abbrev.exe
# RUN: llvm-bolt %t/shared-abbrev.exe -o %t/shared-abbrev.exe.bolt --update-debug-sections
# RUN: llvm-dwarfdump --debug-info %t/shared-abbrev.exe.bolt | FileCheck %s

# CHECK: 0x00000000:
# CHECK-SAME: abbr_offset = 0x0000
# CHECK-EMPTY:
# CHECK-NEXT: 		DW_TAG_compile_unit
# CHECK-NEXT: 		DW_AT_stmt_list
# CHECK-NEXT: 		DW_AT_low_pc
# CHECK-NEXT: 		DW_AT_ranges
# CHECK: 0x0000001c:
# CHECK-SAME: abbr_offset = 0x0000
# CHECK-EMPTY:
# CHECK:		DW_TAG_compile_unit
# CHECK-NEXT: 		DW_AT_stmt_list
# CHECK-NEXT: 		DW_AT_low_pc
# CHECK-NEXT: 		DW_AT_ranges
# CHECK: 0x00000038:
# CHECK-SAME: abbr_offset = 0x0000
# CHECK-EMPTY:
# CHECK-NEXT: 		DW_TAG_compile_unit
# CHECK-NEXT: 		DW_AT_stmt_list
# CHECK-NEXT: 		DW_AT_low_pc
# CHECK-NEXT: 		DW_AT_ranges

	.text
	.file	"main.cpp"
	.globl	main                            # -- Begin function main
	.p2align	4, 0x90
	.type	main,@function
main:                                   # @main
.Lfunc_begin0:
	.file	1 "test" "main.cpp"
	.loc	1 1 0                           # main.cpp:1:0
	.cfi_startproc
	.cfi_def_cfa %rsp, 8
	retq
.Ltmp1:
.Lfunc_end0:
	.size	main, .Lfunc_end0-main
	.cfi_endproc
                                        # -- End function
  .section	.debug_abbrev,"",@progbits
  .byte	1                               # Abbreviation Code
  .byte	17                              # DW_TAG_compile_unit
  .byte	0                               # DW_CHILDREN_no
  .byte	16                              # DW_AT_stmt_list
  .byte	23                              # DW_FORM_sec_offset
  .byte	17                              # DW_AT_low_pc
  .byte	1                               # DW_FORM_addr
  .byte	18                              # DW_AT_high_pc
  .byte	7                               # DW_FORM_data8
  .byte	0                               # EOM(1)
  .byte	0                               # EOM(2)
  .byte 2                               # Abbreviation Code
  .byte 17                              # DW_TAG_compile_unit
  .byte 0                               # DW_CHILDREN_no
  .byte 16                              # DW_AT_stmt_list
  .byte 23                              # DW_FORM_sec_offset
  .byte 17                              # DW_AT_low_pc
  .byte 1                               # DW_FORM_addr
  .byte 85                              # DW_AT_ranges
  .byte 23                              # DW_FORM_sec_offset
  .byte 0                               # EOM(1)
  .byte 0                               # EOM(2)
  .byte	0                               # EOM(3)
  .section	.debug_info,"",@progbits
.Lcu_begin0:
	.long	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
.Ldebug_info_start0:
	.short  4                               # DWARF version number
  .long .debug_abbrev                   # Offset Into Abbrev. Section
  .byte 8                               # Address Size (in bytes)
  .byte 2                               # Abbrev [2] DW_TAG_compile_unit
  .long .Lline_table_start0             # DW_AT_stmt_list
  .quad 0                               # DW_AT_low_pc
  .long .Ldebug_ranges0                 # DW_AT_ranges --- end manual --
.Ldebug_info_end0:

   # Second CU table.
   .long   .Ldebug_info_end1-.Ldebug_info_start1 # Length of Unit
.Ldebug_info_start1:
  .short	4                               # DWARF version number
	.long	.debug_abbrev                   # Offset Into Abbrev. Section
	.byte	8                               # Address Size (in bytes)
	.byte	1                               # Abbrev [1] DW_TAG_compile_unit
	.long	.Lline_table_start0             # DW_AT_stmt_list
	.quad	.Lfunc_begin0                   # DW_AT_low_pc
	.quad	.Lfunc_end0-.Lfunc_begin0       # DW_AT_high_pc
  .byte 0                               # End Of Children Mark
.Ldebug_info_end1:

   # Third CU table.
   .long   .Ldebug_info_end2-.Ldebug_info_start2 # Length of Unit
.Ldebug_info_start2:
	.short  4                               # DWARF version number
  .long .debug_abbrev                   # Offset Into Abbrev. Section
  .byte 8                               # Address Size (in bytes)
  .byte 2                               # Abbrev [2] DW_TAG_compile_unit
  .long .Lline_table_start0             # DW_AT_stmt_list
  .quad 0                               # DW_AT_low_pc
  .long .Ldebug_ranges0                 # DW_AT_ranges --- end manual --
.Ldebug_info_end2:
  .section  .debug_ranges,"",@progbits
.Ldebug_ranges0:
  .quad .Lfunc_begin0
  .quad .Lfunc_end0
  .quad .Lfunc_begin0
  .quad .Lfunc_end0
  .quad 0
  .quad 0
  .section	".note.GNU-stack","",@progbits
  .addrsig
  .section	.debug_line,"",@progbits
.Lline_table_start0: