1## Test loading an ELF file with DWARF. First we make the ELF file from yaml, 2## then we convert the ELF file to GSYM, then we do lookups on the newly 3## created GSYM, and finally we dump the entire GSYM. 4 5# RUN: yaml2obj %s -o %t 6# RUN: llvm-gsymutil --convert %t -o %t.gsym 2>&1 | FileCheck %s --check-prefix=CONVERT 7# RUN: llvm-gsymutil --address=0x400391 --address=0x4004cd %t.gsym 2>&1 | FileCheck %s --check-prefix=ADDR 8# RUN: llvm-gsymutil --address=0x400391 --address=0x4004cd --verbose %t.gsym 2>&1 | FileCheck %s --check-prefix=ADDRV --dump-input=always 9# RUN: llvm-gsymutil %t.gsym 2>&1 | FileCheck %s --check-prefix=DUMP 10 11# ADDR: Looking up addresses in "{{.*\.yaml\.tmp\.gsym}}": 12# ADDR: 0x0000000000400391: _init 13# ADDR: 0x00000000004004cd: main @ /tmp/main.cpp:1 14 15# ADDRV: Looking up addresses in "{{.*\.yaml\.tmp\.gsym}}": 16# ADDRV: FunctionInfo for 0x0000000000400391: 17# ADDRV: [0x0000000000400390 - 0x0000000000400390) "_init" 18# ADDRV: LookupResult for 0x0000000000400391: 19# ADDRV: 0x0000000000400391: _init 20# ADDRV: FunctionInfo for 0x00000000004004cd: 21# ADDRV: [0x00000000004004cd - 0x00000000004004df) "main" 22# ADDRV: LineTable: 23# ADDRV: 0x00000000004004cd /tmp/main.cpp:1 24# ADDRV: 0x00000000004004d8 /tmp/main.cpp:2 25# ADDRV: 0x00000000004004dd /tmp/main.cpp:3 26# ADDRV: LookupResult for 0x00000000004004cd: 27# ADDRV: 0x00000000004004cd: main @ /tmp/main.cpp:1 28 29# CONVERT: Input file: {{.*\.yaml\.tmp}} 30# CONVERT: Output file (x86_64): {{.*\.yaml\.tmp\.gsym}} 31# CONVERT: Loaded 1 functions from DWARF. 32# CONVERT: Loaded 9 functions from symbol table. 33# CONVERT: Pruned 0 functions, ended with 10 total 34 35# DUMP: Header: 36# DUMP-NEXT: Magic = 0x4753594d 37# DUMP-NEXT: Version = 0x0001 38# DUMP-NEXT: AddrOffSize = 0x02 39# DUMP-NEXT: UUIDSize = 0x14 40# DUMP-NEXT: BaseAddress = 0x0000000000400000 41# DUMP-NEXT: NumAddresses = 0x0000000a 42# DUMP-NEXT: StrtabOffset = 0x00000080 43# DUMP-NEXT: StrtabSize = 0x00000091 44# DUMP-NEXT: UUID = 0e62be89cad89206110ed1375b618656f32ac906 45 46# DUMP: Address Table: 47# DUMP-NEXT: INDEX OFFSET16 (ADDRESS) 48# DUMP-NEXT: ====== =============================== 49# DUMP-NEXT: [ 0] 0x0390 (0x0000000000400390) 50# DUMP-NEXT: [ 1] 0x03e0 (0x00000000004003e0) 51# DUMP-NEXT: [ 2] 0x0410 (0x0000000000400410) 52# DUMP-NEXT: [ 3] 0x0440 (0x0000000000400440) 53# DUMP-NEXT: [ 4] 0x0480 (0x0000000000400480) 54# DUMP-NEXT: [ 5] 0x04a0 (0x00000000004004a0) 55# DUMP-NEXT: [ 6] 0x04cd (0x00000000004004cd) 56# DUMP-NEXT: [ 7] 0x04e0 (0x00000000004004e0) 57# DUMP-NEXT: [ 8] 0x0550 (0x0000000000400550) 58# DUMP-NEXT: [ 9] 0x0554 (0x0000000000400554) 59 60# DUMP: Address Info Offsets: 61# DUMP-NEXT: INDEX Offset 62# DUMP-NEXT: ====== ========== 63# DUMP-NEXT: [ 0] 0x00000114 64# DUMP-NEXT: [ 1] 0x00000124 65# DUMP-NEXT: [ 2] 0x00000134 66# DUMP-NEXT: [ 3] 0x00000144 67# DUMP-NEXT: [ 4] 0x00000154 68# DUMP-NEXT: [ 5] 0x00000164 69# DUMP-NEXT: [ 6] 0x00000174 70# DUMP-NEXT: [ 7] 0x00000194 71# DUMP-NEXT: [ 8] 0x000001a4 72# DUMP-NEXT: [ 9] 0x000001b4 73 74# DUMP: Files: 75# DUMP-NEXT: INDEX DIRECTORY BASENAME PATH 76# DUMP-NEXT: ====== ========== ========== ============================== 77# DUMP-NEXT: [ 0] 0x00000000 0x00000000 78# DUMP-NEXT: [ 1] 0x00000006 0x0000000b /tmp/main.cpp 79 80# DUMP: String table: 81# DUMP-NEXT: 0x00000000: "" 82# DUMP-NEXT: 0x00000001: "main" 83# DUMP-NEXT: 0x00000006: "/tmp" 84# DUMP-NEXT: 0x0000000b: "main.cpp" 85# DUMP-NEXT: 0x00000014: "deregister_tm_clones" 86# DUMP-NEXT: 0x00000029: "register_tm_clones" 87# DUMP-NEXT: 0x0000003c: "__do_global_dtors_aux" 88# DUMP-NEXT: 0x00000052: "frame_dummy" 89# DUMP-NEXT: 0x0000005e: "__libc_csu_fini" 90# DUMP-NEXT: 0x0000006e: "_fini" 91# DUMP-NEXT: 0x00000074: "__libc_csu_init" 92# DUMP-NEXT: 0x00000084: "_start" 93# DUMP-NEXT: 0x0000008b: "_init" 94# DUMP: FunctionInfo @ 0x00000114: [0x0000000000400390 - 0x0000000000400390) "_init" 95# DUMP: FunctionInfo @ 0x00000124: [0x00000000004003e0 - 0x00000000004003e0) "_start" 96# DUMP: FunctionInfo @ 0x00000134: [0x0000000000400410 - 0x0000000000400410) "deregister_tm_clones" 97# DUMP: FunctionInfo @ 0x00000144: [0x0000000000400440 - 0x0000000000400440) "register_tm_clones" 98# DUMP: FunctionInfo @ 0x00000154: [0x0000000000400480 - 0x0000000000400480) "__do_global_dtors_aux" 99# DUMP: FunctionInfo @ 0x00000164: [0x00000000004004a0 - 0x00000000004004a0) "frame_dummy" 100# DUMP: FunctionInfo @ 0x00000174: [0x00000000004004cd - 0x00000000004004df) "main" 101# DUMP-NEXT: LineTable: 102# DUMP-NEXT: 0x00000000004004cd /tmp/main.cpp:1 103# DUMP-NEXT: 0x00000000004004d8 /tmp/main.cpp:2 104# DUMP-NEXT: 0x00000000004004dd /tmp/main.cpp:3 105# DUMP: FunctionInfo @ 0x00000194: [0x00000000004004e0 - 0x0000000000400545) "__libc_csu_init" 106# DUMP: FunctionInfo @ 0x000001a4: [0x0000000000400550 - 0x0000000000400552) "__libc_csu_fini" 107# DUMP: FunctionInfo @ 0x000001b4: [0x0000000000400554 - 0x000000000040055d) "_fini" 108--- !ELF 109FileHeader: 110 Class: ELFCLASS64 111 Data: ELFDATA2LSB 112 Type: ET_EXEC 113 Machine: EM_X86_64 114 Entry: 0x00000000004003E0 115Sections: 116 - Name: .interp 117 Type: SHT_PROGBITS 118 Flags: [ SHF_ALLOC ] 119 Address: 0x0000000000400238 120 AddressAlign: 0x0000000000000001 121 Content: 2F6C696236342F6C642D6C696E75782D7838362D36342E736F2E3200 122 - Name: .note.ABI-tag 123 Type: SHT_NOTE 124 Flags: [ SHF_ALLOC ] 125 Address: 0x0000000000400254 126 AddressAlign: 0x0000000000000004 127 Notes: 128 - Name: GNU 129 Desc: '00000000020000000600000020000000' 130 Type: 0x00000001 131 - Name: .note.gnu.build-id 132 Type: SHT_NOTE 133 Flags: [ SHF_ALLOC ] 134 Address: 0x0000000000400274 135 AddressAlign: 0x0000000000000004 136 Notes: 137 - Name: GNU 138 Desc: 0E62BE89CAD89206110ED1375B618656F32AC906 139 Type: 0x00000003 140 - Name: .gnu.hash 141 Type: SHT_GNU_HASH 142 Flags: [ SHF_ALLOC ] 143 Address: 0x0000000000400298 144 Link: .dynsym 145 AddressAlign: 0x0000000000000008 146 Header: 147 SymNdx: 0x00000001 148 Shift2: 0x00000000 149 BloomFilter: [ 0x0000000000000000 ] 150 HashBuckets: [ 0x00000000 ] 151 HashValues: [ ] 152 - Name: .gnu.version 153 Type: SHT_GNU_versym 154 Flags: [ SHF_ALLOC ] 155 Address: 0x0000000000400338 156 Link: .dynsym 157 AddressAlign: 0x0000000000000002 158 EntSize: 0x0000000000000002 159 Entries: [ 0, 2, 0 ] 160 - Name: .gnu.version_r 161 Type: SHT_GNU_verneed 162 Flags: [ SHF_ALLOC ] 163 Address: 0x0000000000400340 164 Link: .dynstr 165 AddressAlign: 0x0000000000000008 166 Info: 0x0000000000000001 167 Dependencies: 168 - Version: 1 169 File: libc.so.6 170 Entries: 171 - Name: GLIBC_2.2.5 172 Hash: 157882997 173 Flags: 0 174 Other: 2 175 - Name: .rela.dyn 176 Type: SHT_RELA 177 Flags: [ SHF_ALLOC ] 178 Address: 0x0000000000400360 179 Link: .dynsym 180 AddressAlign: 0x0000000000000008 181 EntSize: 0x0000000000000018 182 Relocations: 183 - Offset: 0x0000000000600FF8 184 Symbol: __gmon_start__ 185 Type: R_X86_64_GLOB_DAT 186 - Name: .rela.plt 187 Type: SHT_RELA 188 Flags: [ SHF_ALLOC, SHF_INFO_LINK ] 189 Address: 0x0000000000400378 190 Link: .dynsym 191 AddressAlign: 0x0000000000000008 192 EntSize: 0x0000000000000018 193 Info: .got.plt 194 Relocations: 195 - Offset: 0x0000000000601018 196 Symbol: __libc_start_main 197 Type: R_X86_64_JUMP_SLOT 198 - Name: .init 199 Type: SHT_PROGBITS 200 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 201 Address: 0x0000000000400390 202 AddressAlign: 0x0000000000000004 203 Content: 4883EC08488B055D0C20004885C07405E82B0000004883C408C3 204 - Name: .plt 205 Type: SHT_PROGBITS 206 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 207 Address: 0x00000000004003B0 208 AddressAlign: 0x0000000000000010 209 EntSize: 0x0000000000000010 210 Content: FF35520C2000FF25540C20000F1F4000FF25520C20006800000000E9E0FFFFFF 211 - Name: .plt.got 212 Type: SHT_PROGBITS 213 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 214 Address: 0x00000000004003D0 215 AddressAlign: 0x0000000000000008 216 Content: FF25220C20006690 217 - Name: .text 218 Type: SHT_PROGBITS 219 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 220 Address: 0x00000000004003E0 221 AddressAlign: 0x0000000000000010 222 Content: 31ED4989D15E4889E24883E4F0505449C7C05005400048C7C1E004400048C7C7CD044000E8B7FFFFFFF4660F1F440000B82F10600055482D281060004883F80E4889E577025DC3B8000000004885C074F45DBF28106000FFE00F1F8000000000B82810600055482D2810600048C1F8034889E54889C248C1EA3F4801D048D1F875025DC3BA000000004885D274F45D4889C6BF28106000FFE20F1F8000000000803D9D0B2000007511554889E5E87EFFFFFF5DC6058A0B200001F3C30F1F400048833D7809200000741EB8000000004885C0741455BF200E60004889E5FFD05DE97BFFFFFF0F1F00E973FFFFFF554889E5897DFC488975F0B8000000005DC39041574189FF41564989F641554989D541544C8D251809200055488D2D18092000534C29E531DB48C1FD034883EC08E87DFEFFFF4885ED741E0F1F8400000000004C89EA4C89F64489FF41FF14DC4883C3014839EB75EA4883C4085B5D415C415D415E415FC390662E0F1F840000000000F3C3 223 - Name: .fini 224 Type: SHT_PROGBITS 225 Flags: [ SHF_ALLOC, SHF_EXECINSTR ] 226 Address: 0x0000000000400554 227 AddressAlign: 0x0000000000000004 228 Content: 4883EC084883C408C3 229 - Name: .rodata 230 Type: SHT_PROGBITS 231 Flags: [ SHF_ALLOC ] 232 Address: 0x0000000000400560 233 AddressAlign: 0x0000000000000008 234 Content: '01000200000000000000000000000000' 235 - Name: .eh_frame_hdr 236 Type: SHT_PROGBITS 237 Flags: [ SHF_ALLOC ] 238 Address: 0x0000000000400570 239 AddressAlign: 0x0000000000000004 240 Content: 011B033B340000000500000040FEFFFF8000000070FEFFFF500000005DFFFFFFA800000070FFFFFFC8000000E0FFFFFF10010000 241 - Name: .eh_frame 242 Type: SHT_PROGBITS 243 Flags: [ SHF_ALLOC ] 244 Address: 0x00000000004005A8 245 AddressAlign: 0x0000000000000008 246 Content: 1400000000000000017A5200017810011B0C070890010710140000001C00000018FEFFFF2A00000000000000000000001400000000000000017A5200017810011B0C070890010000240000001C000000B8FDFFFF20000000000E10460E184A0F0B770880003F1A3B2A332422000000001C00000044000000ADFEFFFF1200000000410E108602430D064D0C07080000004400000064000000A0FEFFFF6500000000420E108F02450E188E03450E208D04450E288C05480E308606480E3883074D0E406C0E38410E30410E28420E20420E18420E10420E080014000000AC000000C8FEFFFF02000000000000000000000000000000 247 - Name: .init_array 248 Type: SHT_INIT_ARRAY 249 Flags: [ SHF_WRITE, SHF_ALLOC ] 250 Address: 0x0000000000600E10 251 AddressAlign: 0x0000000000000008 252 EntSize: 0x0000000000000008 253 Content: A004400000000000 254 - Name: .fini_array 255 Type: SHT_FINI_ARRAY 256 Flags: [ SHF_WRITE, SHF_ALLOC ] 257 Address: 0x0000000000600E18 258 AddressAlign: 0x0000000000000008 259 EntSize: 0x0000000000000008 260 Content: '8004400000000000' 261 - Name: .jcr 262 Type: SHT_PROGBITS 263 Flags: [ SHF_WRITE, SHF_ALLOC ] 264 Address: 0x0000000000600E20 265 AddressAlign: 0x0000000000000008 266 Content: '0000000000000000' 267 - Name: .dynamic 268 Type: SHT_DYNAMIC 269 Flags: [ SHF_WRITE, SHF_ALLOC ] 270 Address: 0x0000000000600E28 271 Link: .dynstr 272 AddressAlign: 0x0000000000000008 273 EntSize: 0x0000000000000010 274 Entries: 275 - Tag: DT_NEEDED 276 Value: 0x0000000000000001 277 - Tag: DT_INIT 278 Value: 0x0000000000400390 279 - Tag: DT_FINI 280 Value: 0x0000000000400554 281 - Tag: DT_INIT_ARRAY 282 Value: 0x0000000000600E10 283 - Tag: DT_INIT_ARRAYSZ 284 Value: 0x0000000000000008 285 - Tag: DT_FINI_ARRAY 286 Value: 0x0000000000600E18 287 - Tag: DT_FINI_ARRAYSZ 288 Value: 0x0000000000000008 289 - Tag: DT_GNU_HASH 290 Value: 0x0000000000400298 291 - Tag: DT_STRTAB 292 Value: 0x0000000000400300 293 - Tag: DT_SYMTAB 294 Value: 0x00000000004002B8 295 - Tag: DT_STRSZ 296 Value: 0x0000000000000038 297 - Tag: DT_SYMENT 298 Value: 0x0000000000000018 299 - Tag: DT_DEBUG 300 Value: 0x0000000000000000 301 - Tag: DT_PLTGOT 302 Value: 0x0000000000601000 303 - Tag: DT_PLTRELSZ 304 Value: 0x0000000000000018 305 - Tag: DT_PLTREL 306 Value: 0x0000000000000007 307 - Tag: DT_JMPREL 308 Value: 0x0000000000400378 309 - Tag: DT_RELA 310 Value: 0x0000000000400360 311 - Tag: DT_RELASZ 312 Value: 0x0000000000000018 313 - Tag: DT_RELAENT 314 Value: 0x0000000000000018 315 - Tag: DT_VERNEED 316 Value: 0x0000000000400340 317 - Tag: DT_VERNEEDNUM 318 Value: 0x0000000000000001 319 - Tag: DT_VERSYM 320 Value: 0x0000000000400338 321 - Tag: DT_NULL 322 Value: 0x0000000000000000 323 - Tag: DT_NULL 324 Value: 0x0000000000000000 325 - Tag: DT_NULL 326 Value: 0x0000000000000000 327 - Tag: DT_NULL 328 Value: 0x0000000000000000 329 - Tag: DT_NULL 330 Value: 0x0000000000000000 331 - Tag: DT_NULL 332 Value: 0x0000000000000000 333 - Name: .got 334 Type: SHT_PROGBITS 335 Flags: [ SHF_WRITE, SHF_ALLOC ] 336 Address: 0x0000000000600FF8 337 AddressAlign: 0x0000000000000008 338 EntSize: 0x0000000000000008 339 Content: '0000000000000000' 340 - Name: .got.plt 341 Type: SHT_PROGBITS 342 Flags: [ SHF_WRITE, SHF_ALLOC ] 343 Address: 0x0000000000601000 344 AddressAlign: 0x0000000000000008 345 EntSize: 0x0000000000000008 346 Content: 280E60000000000000000000000000000000000000000000C603400000000000 347 - Name: .data 348 Type: SHT_PROGBITS 349 Flags: [ SHF_WRITE, SHF_ALLOC ] 350 Address: 0x0000000000601020 351 AddressAlign: 0x0000000000000001 352 Content: '00000000' 353 - Name: .bss 354 Type: SHT_NOBITS 355 Flags: [ SHF_WRITE, SHF_ALLOC ] 356 Address: 0x0000000000601024 357 AddressAlign: 0x0000000000000001 358 Size: 0x0000000000000004 359 - Name: .comment 360 Type: SHT_PROGBITS 361 Flags: [ SHF_MERGE, SHF_STRINGS ] 362 AddressAlign: 0x0000000000000001 363 EntSize: 0x0000000000000001 364 Content: 4743433A2028474E552920342E382E3520323031353036323320285265642048617420342E382E352D33362900 365 - Name: .debug_aranges 366 Type: SHT_PROGBITS 367 AddressAlign: 0x0000000000000001 368 Content: 2C000000020000000000080000000000CD04400000000000120000000000000000000000000000000000000000000000 369 - Name: .debug_info 370 Type: SHT_PROGBITS 371 AddressAlign: 0x0000000000000001 372 Content: 8700000004000000000008011D000000040F00000005000000CD04400000000000120000000000000000000000020A00000001016B000000CD044000000000001200000000000000019C6B000000031800000001016B00000002916C030000000001017200000002916000040405696E740005087800000005087E00000006830000000701066B00000000 373 - Name: .debug_abbrev 374 Type: SHT_PROGBITS 375 AddressAlign: 0x0000000000000001 376 Content: 011101250E130B030E1B0E1101120710170000022E013F19030E3A0B3B0B491311011207401897421901130000030500030E3A0B3B0B4913021800000424000B0B3E0B03080000050F000B0B49130000062600491300000724000B0B3E0B030E000000 377 - Name: .debug_line 378 Type: SHT_PROGBITS 379 AddressAlign: 0x0000000000000001 380 Content: 3800000002001F0000000101FB0E0D000101010100000001000001006D61696E2E6370700000000000000902CD0440000000000001AD590202000101 381 - Name: .debug_str 382 Type: SHT_PROGBITS 383 Flags: [ SHF_MERGE, SHF_STRINGS ] 384 AddressAlign: 0x0000000000000001 385 EntSize: 0x0000000000000001 386 Content: 61726776002F746D70006D61696E006D61696E2E637070006172676300474E5520432B2B20342E382E3520323031353036323320285265642048617420342E382E352D333629202D6D74756E653D67656E65726963202D6D617263683D7838362D3634202D67202D4F30006368617200 387ProgramHeaders: 388 - Type: PT_LOAD 389 Flags: [ PF_X, PF_R ] 390 VAddr: 0x0000000000400000 391 Align: 1024 392 FirstSec: .interp 393 LastSec: .dynstr 394Symbols: 395 - Name: .interp 396 Type: STT_SECTION 397 Section: .interp 398 Value: 0x0000000000400238 399 - Name: .note.ABI-tag 400 Type: STT_SECTION 401 Section: .note.ABI-tag 402 Value: 0x0000000000400254 403 - Name: .note.gnu.build-id 404 Type: STT_SECTION 405 Section: .note.gnu.build-id 406 Value: 0x0000000000400274 407 - Name: .gnu.hash 408 Type: STT_SECTION 409 Section: .gnu.hash 410 Value: 0x0000000000400298 411 - Name: .dynsym 412 Type: STT_SECTION 413 Section: .dynsym 414 Value: 0x00000000004002B8 415 - Name: .dynstr 416 Type: STT_SECTION 417 Section: .dynstr 418 Value: 0x0000000000400300 419 - Name: .gnu.version 420 Type: STT_SECTION 421 Section: .gnu.version 422 Value: 0x0000000000400338 423 - Name: .gnu.version_r 424 Type: STT_SECTION 425 Section: .gnu.version_r 426 Value: 0x0000000000400340 427 - Name: .rela.dyn 428 Type: STT_SECTION 429 Section: .rela.dyn 430 Value: 0x0000000000400360 431 - Name: .rela.plt 432 Type: STT_SECTION 433 Section: .rela.plt 434 Value: 0x0000000000400378 435 - Name: .init 436 Type: STT_SECTION 437 Section: .init 438 Value: 0x0000000000400390 439 - Name: .plt 440 Type: STT_SECTION 441 Section: .plt 442 Value: 0x00000000004003B0 443 - Name: .plt.got 444 Type: STT_SECTION 445 Section: .plt.got 446 Value: 0x00000000004003D0 447 - Name: .text 448 Type: STT_SECTION 449 Section: .text 450 Value: 0x00000000004003E0 451 - Name: .fini 452 Type: STT_SECTION 453 Section: .fini 454 Value: 0x0000000000400554 455 - Name: .rodata 456 Type: STT_SECTION 457 Section: .rodata 458 Value: 0x0000000000400560 459 - Name: .eh_frame_hdr 460 Type: STT_SECTION 461 Section: .eh_frame_hdr 462 Value: 0x0000000000400570 463 - Name: .eh_frame 464 Type: STT_SECTION 465 Section: .eh_frame 466 Value: 0x00000000004005A8 467 - Name: .init_array 468 Type: STT_SECTION 469 Section: .init_array 470 Value: 0x0000000000600E10 471 - Name: .fini_array 472 Type: STT_SECTION 473 Section: .fini_array 474 Value: 0x0000000000600E18 475 - Name: .jcr 476 Type: STT_SECTION 477 Section: .jcr 478 Value: 0x0000000000600E20 479 - Name: .dynamic 480 Type: STT_SECTION 481 Section: .dynamic 482 Value: 0x0000000000600E28 483 - Name: .got 484 Type: STT_SECTION 485 Section: .got 486 Value: 0x0000000000600FF8 487 - Name: .got.plt 488 Type: STT_SECTION 489 Section: .got.plt 490 Value: 0x0000000000601000 491 - Name: .data 492 Type: STT_SECTION 493 Section: .data 494 Value: 0x0000000000601020 495 - Name: .bss 496 Type: STT_SECTION 497 Section: .bss 498 Value: 0x0000000000601024 499 - Name: .comment 500 Type: STT_SECTION 501 Section: .comment 502 - Name: .debug_aranges 503 Type: STT_SECTION 504 Section: .debug_aranges 505 - Name: .debug_info 506 Type: STT_SECTION 507 Section: .debug_info 508 - Name: .debug_abbrev 509 Type: STT_SECTION 510 Section: .debug_abbrev 511 - Name: .debug_line 512 Type: STT_SECTION 513 Section: .debug_line 514 - Name: .debug_str 515 Type: STT_SECTION 516 Section: .debug_str 517 - Name: crtstuff.c 518 Type: STT_FILE 519 Index: SHN_ABS 520 - Name: __JCR_LIST__ 521 Type: STT_OBJECT 522 Section: .jcr 523 Value: 0x0000000000600E20 524 - Name: deregister_tm_clones 525 Type: STT_FUNC 526 Section: .text 527 Value: 0x0000000000400410 528 - Name: register_tm_clones 529 Type: STT_FUNC 530 Section: .text 531 Value: 0x0000000000400440 532 - Name: __do_global_dtors_aux 533 Type: STT_FUNC 534 Section: .text 535 Value: 0x0000000000400480 536 - Name: completed.6355 537 Type: STT_OBJECT 538 Section: .bss 539 Value: 0x0000000000601024 540 Size: 0x0000000000000001 541 - Name: __do_global_dtors_aux_fini_array_entry 542 Type: STT_OBJECT 543 Section: .fini_array 544 Value: 0x0000000000600E18 545 - Name: frame_dummy 546 Type: STT_FUNC 547 Section: .text 548 Value: 0x00000000004004A0 549 - Name: __frame_dummy_init_array_entry 550 Type: STT_OBJECT 551 Section: .init_array 552 Value: 0x0000000000600E10 553 - Name: main.cpp 554 Type: STT_FILE 555 Index: SHN_ABS 556 - Name: 'crtstuff.c (1)' 557 Type: STT_FILE 558 Index: SHN_ABS 559 - Name: __FRAME_END__ 560 Type: STT_OBJECT 561 Section: .eh_frame 562 Value: 0x0000000000400698 563 - Name: __JCR_END__ 564 Type: STT_OBJECT 565 Section: .jcr 566 Value: 0x0000000000600E20 567 - Type: STT_FILE 568 Index: SHN_ABS 569 - Name: __init_array_end 570 Section: .init_array 571 Value: 0x0000000000600E18 572 - Name: _DYNAMIC 573 Type: STT_OBJECT 574 Section: .dynamic 575 Value: 0x0000000000600E28 576 - Name: __init_array_start 577 Section: .init_array 578 Value: 0x0000000000600E10 579 - Name: __GNU_EH_FRAME_HDR 580 Section: .eh_frame_hdr 581 Value: 0x0000000000400570 582 - Name: _GLOBAL_OFFSET_TABLE_ 583 Type: STT_OBJECT 584 Section: .got.plt 585 Value: 0x0000000000601000 586 - Name: __libc_csu_fini 587 Type: STT_FUNC 588 Section: .text 589 Binding: STB_GLOBAL 590 Value: 0x0000000000400550 591 Size: 0x0000000000000002 592 - Name: data_start 593 Section: .data 594 Binding: STB_WEAK 595 Value: 0x0000000000601020 596 - Name: _edata 597 Section: .data 598 Binding: STB_GLOBAL 599 Value: 0x0000000000601024 600 - Name: _fini 601 Type: STT_FUNC 602 Section: .fini 603 Binding: STB_GLOBAL 604 Value: 0x0000000000400554 605 - Name: '__libc_start_main@@GLIBC_2.2.5' 606 Type: STT_FUNC 607 Binding: STB_GLOBAL 608 - Name: __data_start 609 Section: .data 610 Binding: STB_GLOBAL 611 Value: 0x0000000000601020 612 - Name: __gmon_start__ 613 Binding: STB_WEAK 614 - Name: __dso_handle 615 Type: STT_OBJECT 616 Section: .rodata 617 Binding: STB_GLOBAL 618 Value: 0x0000000000400568 619 Other: [ STV_HIDDEN ] 620 - Name: _IO_stdin_used 621 Type: STT_OBJECT 622 Section: .rodata 623 Binding: STB_GLOBAL 624 Value: 0x0000000000400560 625 Size: 0x0000000000000004 626 - Name: __libc_csu_init 627 Type: STT_FUNC 628 Section: .text 629 Binding: STB_GLOBAL 630 Value: 0x00000000004004E0 631 Size: 0x0000000000000065 632 - Name: _end 633 Section: .bss 634 Binding: STB_GLOBAL 635 Value: 0x0000000000601028 636 - Name: _start 637 Type: STT_FUNC 638 Section: .text 639 Binding: STB_GLOBAL 640 Value: 0x00000000004003E0 641 - Name: __bss_start 642 Section: .bss 643 Binding: STB_GLOBAL 644 Value: 0x0000000000601024 645 - Name: main 646 Type: STT_FUNC 647 Section: .text 648 Binding: STB_GLOBAL 649 Value: 0x00000000004004CD 650 Size: 0x0000000000000012 651 - Name: __TMC_END__ 652 Type: STT_OBJECT 653 Section: .data 654 Binding: STB_GLOBAL 655 Value: 0x0000000000601028 656 Other: [ STV_HIDDEN ] 657 - Name: _init 658 Type: STT_FUNC 659 Section: .init 660 Binding: STB_GLOBAL 661 Value: 0x0000000000400390 662DynamicSymbols: 663 - Name: __libc_start_main 664 Type: STT_FUNC 665 Binding: STB_GLOBAL 666 - Name: __gmon_start__ 667 Binding: STB_WEAK 668... 669