1 ## Test loading an ELF file with split DWARF.
2 ## First we make the ELF file and dwo file from yaml,
3 ## then we test converting the ELF file with and without a valid dwo
5 ## RUN: yaml2obj %s -o %t
6 ## RUN: llvm-gsymutil --convert=%t -o %t.gsym | FileCheck %s --check-prefix=WARNING
7 ## RUN: llvm-gsymutil --convert=%t -o %t.gsym --quiet | FileCheck %s --check-prefix=WARNING-QUIET
9 ## WARNING: Input file: {{.*\.yaml\.tmp}}
10 ## WARNING: Output file (x86_64): {{.*\.yaml\.tmp\.gsym}}
11 ## WARNING: warning: Unable to retrieve DWO .debug_info section for main_split-main.dwo
12 ## WARNING: Loaded 0 functions from DWARF.
13 ## WARNING: Loaded 10 functions from symbol table.
14 ## WARNING: Pruned 0 functions, ended with 10 total
16 ## WARNING-QUIET: Input file: {{.*\.yaml\.tmp}}
17 ## WARNING-QUIET: Output file (x86_64): {{.*\.yaml\.tmp\.gsym}}
18 ## WARNING-QUIET: Pruned 0 functions, ended with 10 total
19 ## WARNING-QUIET: warning: Unable to retrieve DWO .debug_info section for some object files. (Remove the --quiet flag for full output)
72 FirstSec: .note.gnu.property
73 LastSec: .note.gnu.property
78 FirstSec: .note.gnu.build-id
79 LastSec: .note.ABI-tag
82 - Type: PT_GNU_PROPERTY
84 FirstSec: .note.gnu.property
85 LastSec: .note.gnu.property
88 - Type: PT_GNU_EH_FRAME
90 FirstSec: .eh_frame_hdr
91 LastSec: .eh_frame_hdr
108 Content: 2F6C696236342F6C642D6C696E75782D7838362D36342E736F2E3200
109 - Name: .note.gnu.property
116 Desc: 028000C0040000000300000000000000
117 Type: NT_GNU_PROPERTY_TYPE_0
118 - Name: .note.gnu.build-id
125 Desc: 250FD8246225C95E81C87BE2EEB38DD068A42DEE
127 - Name: .note.ABI-tag
134 Desc: '00000000030000000200000000000000'
165 Entries: [ 0, 2, 1, 1, 1 ]
166 - Name: .gnu.version_r
167 Type: SHT_GNU_verneed
188 Symbol: __libc_start_main
189 Type: R_X86_64_GLOB_DAT
191 Symbol: _ITM_deregisterTMCloneTable
192 Type: R_X86_64_GLOB_DAT
194 Symbol: __gmon_start__
195 Type: R_X86_64_GLOB_DAT
197 Symbol: _ITM_registerTMCloneTable
198 Type: R_X86_64_GLOB_DAT
201 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
205 Content: F30F1EFA4883EC08488B05C92F00004885C07402FFD04883C408C3
208 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
211 Content: F30F1EFA31ED4989D15E4889E24883E4F050544531C031C948C7C720114000FF15832F0000F4662E0F1F840000000000F30F1EFAC3662E0F1F84000000000090488D3DA12F0000488D059A2F00004839F87415488B05562F00004885C07409FFE00F1F8000000000C30F1F8000000000488D3D712F0000488D356A2F00004829FE4889F048C1EE3F48C1F8034801C648D1FE7414488B05252F00004885C07408FFE0660F1F440000C30F1F8000000000F30F1EFA803D292F0000007513554889E5E87AFFFFFFC605172F0000015DC390C366662E0F1F8400000000000F1F4000F30F1EFAEB8A662E0F1F840000000000554889E55DC3662E0F1F840000000000554889E54883EC10C745FC00000000E8DCFFFFFF31C04883C4105DC3
214 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
217 Content: F30F1EFA4883EC084883C408C3
224 Content: '01000200000000000000000000000000'
225 - Name: .eh_frame_hdr
230 Content: 011B033B2C0000000400000010F0FFFF4800000040F0FFFF5C00000000F1FFFF7000000010F1FFFF90000000
236 Content: 1400000000000000017A5200017810011B0C070890010000100000001C000000C0EFFFFF26000000004407101000000030000000DCEFFFFF05000000000000001C0000004400000088F0FFFF0600000000410E108602430D06410C07080000001C0000006400000078F0FFFF1C00000000410E108602430D06570C070800000000000000
239 Flags: [ SHF_WRITE, SHF_ALLOC ]
244 Content: '0011400000000000'
247 Flags: [ SHF_WRITE, SHF_ALLOC ]
251 Content: D010400000000000
254 Flags: [ SHF_WRITE, SHF_ALLOC ]
273 - Tag: DT_INIT_ARRAYSZ
277 - Tag: DT_FINI_ARRAYSZ
317 Flags: [ SHF_WRITE, SHF_ALLOC ]
321 Content: '0000000000000000000000000000000000000000000000000000000000000000'
324 Flags: [ SHF_WRITE, SHF_ALLOC ]
328 Content: '083E40000000000000000000000000000000000000000000'
331 Flags: [ SHF_WRITE, SHF_ALLOC ]
337 Flags: [ SHF_WRITE, SHF_ALLOC ]
343 Flags: [ SHF_MERGE, SHF_STRINGS ]
346 Content: 4743433A2028474E55292031312E342E312032303233303630352028526564204861742031312E342E312D3229004743433A2028474E55292031332E322E312032303233313131302028526564204861742031332E322E312D352900636C616E672076657273696F6E2031372E302E31202843656E744F532031372E302E312D322E656C392900
347 - Name: .gnu.build.attributes
353 Desc: '20104000000000004610400000000000'
354 Type: NT_GNU_BUILD_ATTRIBUTE_OPEN
356 Desc: '55104000000000005510400000000000'
357 Type: NT_GNU_BUILD_ATTRIBUTE_OPEN
359 Desc: '00104000000000001610400000000000'
360 Type: NT_GNU_BUILD_ATTRIBUTE_OPEN
362 Desc: 3C114000000000004411400000000000
363 Type: NT_GNU_BUILD_ATTRIBUTE_OPEN
365 Desc: '60104000000000000611400000000000'
366 Type: NT_GNU_BUILD_ATTRIBUTE_OPEN
368 Desc: 3C114000000000003C11400000000000
369 Type: NT_GNU_BUILD_ATTRIBUTE_OPEN
371 Desc: 3C114000000000003C11400000000000
372 Type: NT_GNU_BUILD_ATTRIBUTE_OPEN
374 Desc: 16104000000000001B10400000000000
375 Type: NT_GNU_BUILD_ATTRIBUTE_OPEN
377 Desc: '44114000000000004911400000000000'
378 Type: NT_GNU_BUILD_ATTRIBUTE_OPEN
382 Content: 2C000000040000000000080100000000000000000E000000939F5FCB7816797B10114000000000002C00000000000000
383 - Name: .debug_abbrev
386 Content: 01110010171B0EB44219B0420EB1420711011206B34217000000
390 Content: 47000000040020000000010101FB0E0D000101010100000001000001006D61696E2E637070000000000000090210114000000000000105050A0B4B0500BD05050AE559060B2E0206000101
394 Content: '10114000000000002011400000000000'
395 - Name: .debug_gnu_pubnames
398 Content: 21000000020000000000300000001900000030666F6F0025000000306D61696E0000000000
399 - Name: .debug_gnu_pubtypes
402 Content: '17000000020000000000300000003400000090696E740000000000'
409 Section: .note.ABI-tag
415 - Name: deregister_tm_clones
419 - Name: register_tm_clones
423 - Name: __do_global_dtors_aux
432 - Name: __do_global_dtors_aux_fini_array_entry
440 - Name: __frame_dummy_init_array_entry
447 - Name: 'crtstuff.c (1)'
450 - Name: __FRAME_END__
456 - Name: __GNU_EH_FRAME_HDR
457 Section: .eh_frame_hdr
463 - Name: _GLOBAL_OFFSET_TABLE_
475 - Name: _IO_stdin_used
492 Other: [ STV_HIDDEN ]
498 Other: [ STV_HIDDEN ]
499 - Name: '__libc_start_main@GLIBC_2.34'
502 - Name: _dl_relocate_static_pie
508 Other: [ STV_HIDDEN ]
520 Other: [ STV_HIDDEN ]
526 Other: [ STV_HIDDEN ]
545 - Name: _ITM_deregisterTMCloneTable
547 - Name: __gmon_start__
549 - Name: _ITM_registerTMCloneTable
552 - Name: __libc_start_main
555 - Name: _ITM_deregisterTMCloneTable
557 - Name: __gmon_start__
559 - Name: _ITM_registerTMCloneTable
564 - main_split-main.dwo