1 # RUN: yaml2obj %s -o %t.o
2 # RUN: ld.lld --gdb-index %t.o -o /dev/null
4 ## We used to crash if a DWARFAddressRange has invalid SectionIndex (-1).
5 ## Such DWARFAddressRange can be produced by clang -c -gdwarf-5 -gmlt before r360678.
16 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
17 AddressAlign: 0x0000000000000010
19 - Name: .debug_str_offsets
21 AddressAlign: 0x0000000000000001
22 Content: '1000000005000000000000000000000000000000'
23 - Name: .rela.debug_str_offsets
26 AddressAlign: 0x0000000000000008
27 EntSize: 0x0000000000000018
28 Info: .debug_str_offsets
30 - Offset: 0x0000000000000008
33 - Offset: 0x000000000000000C
37 - Offset: 0x0000000000000010
43 Flags: [ SHF_MERGE, SHF_STRINGS ]
44 AddressAlign: 0x0000000000000001
45 EntSize: 0x0000000000000001
46 Content: 00612E6363002F746D7000
49 AddressAlign: 0x0000000000000001
50 Content: 011100252513050325721710171B25111B1206000000
53 AddressAlign: 0x0000000000000001
54 Content: 1B000000050001080000000001000400010000000000000000020003000000
55 - Name: .rela.debug_info
58 AddressAlign: 0x0000000000000008
59 EntSize: 0x0000000000000018
62 - Offset: 0x0000000000000008
65 - Offset: 0x0000000000000011
66 Symbol: .debug_str_offsets
69 - Offset: 0x0000000000000015
74 AddressAlign: 0x0000000000000001
75 Content: 0C000000050008000000000000000000
76 - Name: .rela.debug_addr
79 AddressAlign: 0x0000000000000008
80 EntSize: 0x0000000000000018
83 - Offset: 0x0000000000000008
88 AddressAlign: 0x0000000000000001
89 Content: 2D0000000500080025000000010101FB0E0D00010101010000000100000101011F010000000002011F020F010000000000
90 - Name: .rela.debug_line
93 AddressAlign: 0x0000000000000008
94 EntSize: 0x0000000000000018
97 - Offset: 0x0000000000000022
98 Symbol: .debug_line_str
100 - Offset: 0x000000000000002C
101 Symbol: .debug_line_str
104 - Name: .debug_line_str
106 Flags: [ SHF_MERGE, SHF_STRINGS ]
107 AddressAlign: 0x0000000000000001
108 EntSize: 0x0000000000000001
109 Content: 2F746D7000612E636300
117 - Name: .debug_str_offsets
119 Section: .debug_str_offsets
123 - Name: .debug_abbrev
125 Section: .debug_abbrev
132 - Name: .debug_line_str
134 Section: .debug_line_str
139 Size: 0x0000000000000003