315 lines · yaml
1# template <typename T>2# class foo {};3#4# template <template <typename T> class CT = foo>5# class baz {};6#7# template <typename T = char, int i = 3, bool b = true,8# typename c = foo<T>>9# class bar {};10#11# int main() {12# bar<> br;13# baz<> bz;14# return 0;15# }16#17# YAML generated on Linux using obj2yaml on the above program18# compiled with Clang.19--- !ELF20FileHeader:21 Class: ELFCLASS6422 Data: ELFDATA2LSB23 Type: ET_REL24 Machine: EM_AARCH6425 SectionHeaderStringTable: .strtab26Sections:27 - Name: .text28 Type: SHT_PROGBITS29 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]30 AddressAlign: 0x431 Content: FF4300D1E0031F2AFF0F00B9FF430091C0035FD632 - Name: .linker-options33 Type: SHT_LLVM_LINKER_OPTIONS34 Flags: [ SHF_EXCLUDE ]35 AddressAlign: 0x136 Content: ''37 - Name: .debug_abbrev38 Type: SHT_PROGBITS39 AddressAlign: 0x140 Content: 011101252513050325721710171B25111B120673170000022E01111B1206401803253A0B3B0B49133F190000033400021803253A0B3B0B4913000004240003253E0B0B0B0000050201360B03250B0B3A0B3B0B0000062F00491303251E190000073000491303251E191C0D0000083000491303251E191C0F000009020003253C1900000A8682010003251E1990422500000041 - Name: .debug_info42 Type: SHT_PROGBITS43 AddressAlign: 0x144 Content: 7F00000005000108000000000100210001000000000000000002001400000000000000020014000000016F03000B490000000302910B05000C4D0000000302910A0E000D78000000000404050405050D010009066E000000070749000000080308720000000A0106760000000C000406080104090201090B0505110100050A0F10000045 - Name: .debug_str_offsets46 Type: SHT_PROGBITS47 AddressAlign: 0x148 Content: 4C0000000500000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000049 - Name: .comment50 Type: SHT_PROGBITS51 Flags: [ SHF_MERGE, SHF_STRINGS ]52 AddressAlign: 0x153 EntSize: 0x154 Content: 00636C616E672076657273696F6E2031362E302E30202868747470733A2F2F6769746875622E636F6D2F6C6C766D2F6C6C766D2D70726F6A6563742034376432386237613832363865333761613064653736623835396634353038653364626163366365290055 - Name: .note.GNU-stack56 Type: SHT_PROGBITS57 AddressAlign: 0x158 - Name: .eh_frame59 Type: SHT_PROGBITS60 Flags: [ SHF_ALLOC ]61 AddressAlign: 0x862 Content: 1000000000000000017A5200017C1E011B0C1F001800000018000000000000001400000000440E104C0E00000000000063 - Name: .debug_line64 Type: SHT_PROGBITS65 AddressAlign: 0x166 Content: 580000000500080037000000010101FB0E0D00010101010000000100000101011F010000000003011F020F051E01000000000019537E33C1D1006B79E3D1C33D6EE6A304000009020000000000000000030A0105050ABD020800010167 - Name: .debug_line_str68 Type: SHT_PROGBITS69 Flags: [ SHF_MERGE, SHF_STRINGS ]70 AddressAlign: 0x171 EntSize: 0x172 Content: 2F686F6D652F6761726465690064656661756C74732E6370700073 - Name: .rela.debug_info74 Type: SHT_RELA75 Flags: [ SHF_INFO_LINK ]76 Link: .symtab77 AddressAlign: 0x878 Info: .debug_info79 Relocations:80 - Offset: 0x881 Symbol: .debug_abbrev82 Type: R_AARCH64_ABS3283 - Offset: 0x1184 Symbol: .debug_str_offsets85 Type: R_AARCH64_ABS3286 Addend: 887 - Offset: 0x1588 Symbol: .debug_line89 Type: R_AARCH64_ABS3290 - Offset: 0x1F91 Symbol: .debug_addr92 Type: R_AARCH64_ABS3293 Addend: 894 - Name: .rela.debug_str_offsets95 Type: SHT_RELA96 Flags: [ SHF_INFO_LINK ]97 Link: .symtab98 AddressAlign: 0x899 Info: .debug_str_offsets100 Relocations:101 - Offset: 0x8102 Symbol: .debug_str103 Type: R_AARCH64_ABS32104 - Offset: 0xC105 Symbol: .debug_str106 Type: R_AARCH64_ABS32107 Addend: 101108 - Offset: 0x10109 Symbol: .debug_str110 Type: R_AARCH64_ABS32111 Addend: 114112 - Offset: 0x14113 Symbol: .debug_str114 Type: R_AARCH64_ABS32115 Addend: 127116 - Offset: 0x18117 Symbol: .debug_str118 Type: R_AARCH64_ABS32119 Addend: 132120 - Offset: 0x1C121 Symbol: .debug_str122 Type: R_AARCH64_ABS32123 Addend: 136124 - Offset: 0x20125 Symbol: .debug_str126 Type: R_AARCH64_ABS32127 Addend: 139128 - Offset: 0x24129 Symbol: .debug_str130 Type: R_AARCH64_ABS32131 Addend: 144132 - Offset: 0x28133 Symbol: .debug_str134 Type: R_AARCH64_ABS32135 Addend: 146136 - Offset: 0x2C137 Symbol: .debug_str138 Type: R_AARCH64_ABS32139 Addend: 148140 - Offset: 0x30141 Symbol: .debug_str142 Type: R_AARCH64_ABS32143 Addend: 153144 - Offset: 0x34145 Symbol: .debug_str146 Type: R_AARCH64_ABS32147 Addend: 155148 - Offset: 0x38149 Symbol: .debug_str150 Type: R_AARCH64_ABS32151 Addend: 165152 - Offset: 0x3C153 Symbol: .debug_str154 Type: R_AARCH64_ABS32155 Addend: 167156 - Offset: 0x40157 Symbol: .debug_str158 Type: R_AARCH64_ABS32159 Addend: 198160 - Offset: 0x44161 Symbol: .debug_str162 Type: R_AARCH64_ABS32163 Addend: 201164 - Offset: 0x48165 Symbol: .debug_str166 Type: R_AARCH64_ABS32167 Addend: 204168 - Offset: 0x4C169 Symbol: .debug_str170 Type: R_AARCH64_ABS32171 Addend: 208172 - Name: .rela.debug_addr173 Type: SHT_RELA174 Flags: [ SHF_INFO_LINK ]175 Link: .symtab176 AddressAlign: 0x8177 Info: .debug_addr178 Relocations:179 - Offset: 0x8180 Symbol: .text181 Type: R_AARCH64_ABS64182 - Name: .rela.eh_frame183 Type: SHT_RELA184 Flags: [ SHF_INFO_LINK ]185 Link: .symtab186 AddressAlign: 0x8187 Info: .eh_frame188 Relocations:189 - Offset: 0x1C190 Symbol: .text191 Type: R_AARCH64_PREL32192 - Name: .rela.debug_line193 Type: SHT_RELA194 Flags: [ SHF_INFO_LINK ]195 Link: .symtab196 AddressAlign: 0x8197 Info: .debug_line198 Relocations:199 - Offset: 0x22200 Symbol: .debug_line_str201 Type: R_AARCH64_ABS32202 - Offset: 0x2E203 Symbol: .debug_line_str204 Type: R_AARCH64_ABS32205 Addend: 13206 - Offset: 0x48207 Symbol: .text208 Type: R_AARCH64_ABS64209 - Name: .llvm_addrsig210 Type: SHT_LLVM_ADDRSIG211 Flags: [ SHF_EXCLUDE ]212 Link: .symtab213 AddressAlign: 0x1214 Offset: 0x818215 Symbols: [ ]216 - Type: SectionHeaderTable217 Sections:218 - Name: .strtab219 - Name: .text220 - Name: .linker-options221 - Name: .debug_abbrev222 - Name: .debug_info223 - Name: .rela.debug_info224 - Name: .debug_str_offsets225 - Name: .rela.debug_str_offsets226 - Name: .debug_str227 - Name: .debug_addr228 - Name: .rela.debug_addr229 - Name: .comment230 - Name: .note.GNU-stack231 - Name: .eh_frame232 - Name: .rela.eh_frame233 - Name: .debug_line234 - Name: .rela.debug_line235 - Name: .debug_line_str236 - Name: .llvm_addrsig237 - Name: .symtab238Symbols:239 - Name: defaults.cpp240 Type: STT_FILE241 Index: SHN_ABS242 - Name: .text243 Type: STT_SECTION244 Section: .text245 - Name: '$x.0'246 Section: .text247 - Name: .debug_abbrev248 Type: STT_SECTION249 Section: .debug_abbrev250 - Name: '$d.1'251 Section: .debug_abbrev252 - Name: '$d.2'253 Section: .debug_info254 - Name: .debug_str_offsets255 Type: STT_SECTION256 Section: .debug_str_offsets257 - Name: '$d.3'258 Section: .debug_str_offsets259 - Name: .debug_str260 Type: STT_SECTION261 Section: .debug_str262 - Name: '$d.4'263 Section: .debug_str264 - Name: .debug_addr265 Type: STT_SECTION266 Section: .debug_addr267 - Name: '$d.5'268 Section: .debug_addr269 - Name: '$d.6'270 Section: .comment271 - Name: '$d.7'272 Section: .eh_frame273 - Name: .debug_line274 Type: STT_SECTION275 Section: .debug_line276 - Name: '$d.8'277 Section: .debug_line278 - Name: .debug_line_str279 Type: STT_SECTION280 Section: .debug_line_str281 - Name: '$d.9'282 Section: .debug_line_str283 - Name: main284 Type: STT_FUNC285 Section: .text286 Binding: STB_GLOBAL287 Size: 0x14288DWARF:289 debug_str:290 - 'clang version 16.0.0 (https://github.com/llvm/llvm-project 47d28b7a8268e37aa0de76b859f4508e3dbac6ce)'291 - defaults.cpp292 - '/home/gardei'293 - main294 - int295 - br296 - char297 - T298 - i299 - bool300 - b301 - 'foo<char>'302 - c303 - 'bar<char, 3, true, foo<char> >'304 - bz305 - CT306 - foo307 - 'baz<foo>'308 debug_addr:309 - Length: 0xC310 Version: 0x5311 AddressSize: 0x8312 Entries:313 - {}314...315