File tree Expand file tree Collapse file tree 2 files changed +76
-5
lines changed
llvm/test/tools/llvm-dwarfdump/X86 Expand file tree Collapse file tree 2 files changed +76
-5
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # Test llvm-dwarfdump handles CREL relocation sections correctly.
2+
3+ # RUN: yaml2obj %s | llvm-dwarfdump - | FileCheck %s
4+
5+ # CHECK: DW_AT_producer ("clang version
6+
7+ --- !ELF
8+ FileHeader :
9+ Class : ELFCLASS64
10+ Data : ELFDATA2LSB
11+ Type : ET_REL
12+ Machine : EM_X86_64
13+ SectionHeaderStringTable : .strtab
14+ Sections :
15+ - Name : .debug_abbrev
16+ Type : SHT_PROGBITS
17+ AddressAlign : 0x1
18+ Content : 011101252513050325721710171B25111B120673170000022E00111B120640187A196E2503253A0B3B0B49133F19000003240003253E0B0B0B000000
19+ - Name : .debug_info
20+ Type : SHT_PROGBITS
21+ AddressAlign : 0x1
22+ Content : ' 3400000005000108000000000100210001000000000000000002000600000000000000020006000000015703040001330000000305050400'
23+ - Name : .debug_str_offsets
24+ Type : SHT_PROGBITS
25+ AddressAlign : 0x1
26+ Content : 1C00000005000000000000000000000000000000000000000000000000000000
27+ - Name : .crel.debug_info
28+ Type : SHT_CREL
29+ Flags : [ SHF_INFO_LINK ]
30+ Link : .symtab
31+ AddressAlign : 0x1
32+ EntSize : 0x1
33+ Info : .debug_info
34+ Relocations :
35+ - Offset : 0x11
36+ Symbol : .debug_str_offsets
37+ Type : R_X86_64_32
38+ Addend : 8
39+ - Name : .crel.debug_str_offsets
40+ Type : SHT_CREL
41+ Flags : [ SHF_INFO_LINK ]
42+ Link : .symtab
43+ AddressAlign : 0x1
44+ EntSize : 0x1
45+ Info : .debug_str_offsets
46+ Relocations :
47+ - Offset : 0x8
48+ Symbol : .debug_str
49+ Type : R_X86_64_32
50+ - Type : SectionHeaderTable
51+ Sections :
52+ - Name : .strtab
53+ - Name : .debug_abbrev
54+ - Name : .debug_info
55+ - Name : .crel.debug_info
56+ - Name : .debug_str_offsets
57+ - Name : .crel.debug_str_offsets
58+ - Name : .debug_str
59+ - Name : .symtab
60+ Symbols :
61+ - Name : foo.cpp
62+ Type : STT_FILE
63+ Index : SHN_ABS
64+ - Name : .debug_abbrev
65+ Type : STT_SECTION
66+ Section : .debug_abbrev
67+ - Name : .debug_str_offsets
68+ Type : STT_SECTION
69+ Section : .debug_str_offsets
70+ - Name : .debug_str
71+ Type : STT_SECTION
72+ Section : .debug_str
73+ DWARF :
74+ debug_str :
75+ - ' clang version 21.0.0git'
76+ ...
You can’t perform that action at this time.
0 commit comments