427 lines · yaml
1# File test.c, compiled with flags "-O0 -g"2# Source code:3#4# int foo = 0;5#6# int func() {7# foo = 1234;8# return foo;9# }10#11# int main() {12# return func();13# }14#15 16--- !ELF17FileHeader:18 Class: ELFCLASS3219 Data: ELFDATA2LSB20 OSABI: ELFOSABI_STANDALONE21 Type: ET_EXEC22 Machine: EM_MSP43023 Flags: [ ]24 Entry: 0x50025ProgramHeaders:26 - Type: PT_LOAD27 Flags: [ PF_X, PF_R ]28 FirstSec: .text29 LastSec: .bss30 VAddr: 0x46C31 Align: 0x432 - Type: PT_LOAD33 Flags: [ PF_W, PF_R ]34 FirstSec: .data35 LastSec: .bss36 VAddr: 0x53C37 Align: 0x438 - Type: PT_LOAD39 Flags: [ PF_R ]40 FirstSec: __interrupt_vector_3141 LastSec: __interrupt_vector_3142 VAddr: 0xFFFE43 Align: 0x444Sections:45 - Name: .text46 Type: SHT_PROGBITS47 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]48 Address: 0x50049 AddressAlign: 0x450 Content: 3140C0FF0C43B0121C05B01281010000B240D2043C051C423C0530413180020081430000B01210053150020030411C4330413C402A0030410C43304151 - Name: .data52 Type: SHT_PROGBITS53 Flags: [ SHF_WRITE, SHF_ALLOC ]54 Address: 0x53C55 AddressAlign: 0x156 - Name: .bss57 Type: SHT_NOBITS58 Flags: [ SHF_WRITE, SHF_ALLOC ]59 Address: 0x53C60 AddressAlign: 0x261 Size: 0x262 - Name: __interrupt_vector_3163 Type: SHT_PROGBITS64 Flags: [ SHF_ALLOC ]65 Address: 0xFFFE66 AddressAlign: 0x167 Offset: 0xD268 Content: '0005'69 - Name: .rodata70 Type: SHT_PROGBITS71 Flags: [ SHF_WRITE, SHF_ALLOC ]72 Address: 0x50073 AddressAlign: 0x174 - Name: .rodata275 Type: SHT_PROGBITS76 Flags: [ SHF_WRITE ]77 Address: 0x50078 AddressAlign: 0x179 - Name: .noinit80 Type: SHT_PROGBITS81 Flags: [ SHF_WRITE ]82 Address: 0x53E83 AddressAlign: 0x184 - Name: .persistent85 Type: SHT_PROGBITS86 Flags: [ SHF_WRITE ]87 Address: 0x53E88 AddressAlign: 0x189 - Name: .MSP430.attributes90 Type: SHT_MSP430_ATTRIBUTES91 AddressAlign: 0x192 Content: 41160000006D737061626900010B00000004010601080193 - Name: .comment94 Type: SHT_PROGBITS95 Flags: [ SHF_MERGE, SHF_STRINGS ]96 AddressAlign: 0x197 EntSize: 0x198 Content: 4743433A20284D6974746F2053797374656D73204C696D69746564202D206D73703433302D67636320392E332E312E31312920392E332E3100636C616E672076657273696F6E2031362E302E30202868747470733A2F2F6769746875622E636F6D2F6163636573732D736F6674656B2F6C6C766D2D70726F6A6563742E6769742037363436333166386464333035323138633961393865616537353535346430343630323634303232290099 - Name: .debug_info100 Type: SHT_PROGBITS101 AddressAlign: 0x1102 Content: 4D000000050001040000000001001D0001080000000000000002011E0000000800000002032E000000000202A1000304050204010C00000001510500042E00000004021200000001510600092E00000000103 - Name: .debug_abbrev104 Type: SHT_PROGBITS105 AddressAlign: 0x1106 Content: 011101252513050325721710171B25111B120673170000023400032549133F193A0B3B0B0218000003240003253E0B0B0B0000042E00111B1206401803253A0B3B0B49133F19000000107 - Name: .debug_line108 Type: SHT_PROGBITS109 AddressAlign: 0x1110 Content: 660000000500040037000000010101FB0E0D00010101010000000100000101011F010000000003011F020F051E011E000000002C97BF5F43C79BB948A69660B684FF4A0400000502100500001505060A130509670502064A0500063105090A830502060B4A0206000101111 - Name: .debug_frame112 Type: SHT_PROGBITS113 AddressAlign: 0x4114 Content: 10000000FFFFFFFF04000400017E000C010280010C00000000000000100500000C00000014000000000000001C05000012000000440E044C0E020000115 - Name: .debug_str_offsets116 Type: SHT_PROGBITS117 AddressAlign: 0x1118 Content: 2000000005000000000000007200000079000000970000009B0000009F000000A4000000119 - Name: .debug_line_str120 Type: SHT_PROGBITS121 Flags: [ SHF_MERGE, SHF_STRINGS ]122 AddressAlign: 0x1123 EntSize: 0x1124 Content: 2F686F6D652F757365722F6465762F746573742F6D737034333000746573742E6300125 - Type: SectionHeaderTable126 Sections:127 - Name: __interrupt_vector_31128 - Name: .rodata129 - Name: .rodata2130 - Name: .text131 - Name: .data132 - Name: .bss133 - Name: .noinit134 - Name: .persistent135 - Name: .MSP430.attributes136 - Name: .comment137 - Name: .debug_info138 - Name: .debug_abbrev139 - Name: .debug_line140 - Name: .debug_frame141 - Name: .debug_str142 - Name: .debug_str_offsets143 - Name: .debug_addr144 - Name: .debug_line_str145 - Name: .symtab146 - Name: .strtab147 - Name: .shstrtab148Symbols:149 - Name: __interrupt_vector_31150 Type: STT_SECTION151 Section: __interrupt_vector_31152 Value: 0xFFFE153 - Name: .rodata154 Type: STT_SECTION155 Section: .rodata156 Value: 0x500157 - Name: .rodata2158 Type: STT_SECTION159 Section: .rodata2160 Value: 0x500161 - Name: .text162 Type: STT_SECTION163 Section: .text164 Value: 0x500165 - Name: .data166 Type: STT_SECTION167 Section: .data168 Value: 0x53C169 - Name: .bss170 Type: STT_SECTION171 Section: .bss172 Value: 0x53C173 - Name: .noinit174 Type: STT_SECTION175 Section: .noinit176 Value: 0x53E177 - Name: .persistent178 Type: STT_SECTION179 Section: .persistent180 Value: 0x53E181 - Name: .MSP430.attributes182 Type: STT_SECTION183 Section: .MSP430.attributes184 - Name: .comment185 Type: STT_SECTION186 Section: .comment187 - Name: .debug_info188 Type: STT_SECTION189 Section: .debug_info190 - Name: .debug_abbrev191 Type: STT_SECTION192 Section: .debug_abbrev193 - Name: .debug_line194 Type: STT_SECTION195 Section: .debug_line196 - Name: .debug_frame197 Type: STT_SECTION198 Section: .debug_frame199 - Name: .debug_str200 Type: STT_SECTION201 Section: .debug_str202 - Name: .debug_str_offsets203 Type: STT_SECTION204 Section: .debug_str_offsets205 - Name: .debug_addr206 Type: STT_SECTION207 Section: .debug_addr208 - Name: .debug_line_str209 Type: STT_SECTION210 Section: .debug_line_str211 - Name: __msp430_resetvec_hook212 Section: __interrupt_vector_31213 Value: 0xFFFE214 - Name: .Loc.58.1215 Section: .text216 Value: 0x500217 - Name: "L0\x01"218 Section: .text219 Value: 0x504220 - Name: "L0\x01 (1)"221 Section: .text222 Value: 0x500223 - Name: "L0\x01 (2)"224 Section: .text225 Value: 0x504226 - Name: crt_main.o227 Type: STT_FILE228 Index: SHN_ABS229 - Name: .Loc.253.1230 Section: .text231 Value: 0x504232 - Name: .Loc.254.1233 Section: .text234 Value: 0x506235 - Name: "L0\x01 (3)"236 Section: .text237 Value: 0x50A238 - Name: "L0\x01 (4)"239 Section: .text240 Value: 0x504241 - Name: "L0\x01 (5)"242 Section: .text243 Value: 0x50A244 - Name: crt_callexit.o245 Type: STT_FILE246 Index: SHN_ABS247 - Name: .Loc.267.1248 Section: .text249 Value: 0x50A250 - Name: "L0\x01 (6)"251 Section: .text252 Value: 0x50E253 - Name: "L0\x01 (7)"254 Section: .text255 Value: 0x50A256 - Name: "L0\x01 (8)"257 Section: .text258 Value: 0x50E259 - Name: test.c260 Type: STT_FILE261 Index: SHN_ABS262 - Name: syscalls.o263 Type: STT_FILE264 Index: SHN_ABS265 - Name: .Loc.59.1266 Section: .text267 Value: 0x52E268 - Name: .Loc.60.1269 Section: .text270 Value: 0x530271 - Name: .Loc.65.1272 Section: .text273 Value: 0x532274 - Name: .Loc.66.1275 Section: .text276 Value: 0x536277 - Name: .Loc.71.1278 Section: .text279 Value: 0x538280 - Name: .Loc.72.1281 Section: .text282 Value: 0x53A283 - Name: "L0\x01 (9)"284 Section: .text285 Value: 0x53C286 - Name: "L0\x01 (10)"287 Section: .text288 Value: 0x52E289 - Name: "L0\x01 (11)"290 Section: .text291 Value: 0x53C292 - Name: __crt0_call_exit293 Type: STT_FUNC294 Section: .text295 Binding: STB_GLOBAL296 Value: 0x50A297 Size: 0x4298 - Name: getpid299 Section: .text300 Binding: STB_WEAK301 Value: 0x532302 - Name: isatty303 Section: .text304 Binding: STB_WEAK305 Value: 0x52E306 - Name: __crt0_start307 Type: STT_FUNC308 Section: .text309 Binding: STB_GLOBAL310 Value: 0x500311 Size: 0x4312 - Name: lseek313 Index: SHN_ABS314 Binding: STB_WEAK315 Value: 0x186316 - Name: _isatty317 Section: .text318 Binding: STB_WEAK319 Value: 0x52E320 - Name: fstat321 Index: SHN_ABS322 Binding: STB_WEAK323 Value: 0x18A324 - Name: kill325 Index: SHN_ABS326 Binding: STB_WEAK327 Value: 0x189328 - Name: _start329 Section: .text330 Binding: STB_GLOBAL331 Value: 0x500332 - Name: read333 Index: SHN_ABS334 Binding: STB_WEAK335 Value: 0x184336 - Name: __rom_highdatacopysize337 Index: SHN_ABS338 Binding: STB_WEAK339 - Name: gettimeofday340 Section: .text341 Binding: STB_WEAK342 Value: 0x538343 Size: 0x4344 - Name: main345 Type: STT_FUNC346 Section: .text347 Binding: STB_GLOBAL348 Value: 0x51C349 Size: 0x12350 - Name: __high_bsssize351 Index: SHN_ABS352 Binding: STB_WEAK353 - Name: __rom_highdatastart354 Index: SHN_ABS355 Binding: STB_WEAK356 - Name: __high_datastart357 Index: SHN_ABS358 Binding: STB_WEAK359 - Name: __upper_data_init360 Index: SHN_ABS361 Binding: STB_WEAK362 - Name: func363 Type: STT_FUNC364 Section: .text365 Binding: STB_GLOBAL366 Value: 0x510367 Size: 0xC368 - Name: foo369 Type: STT_OBJECT370 Section: .bss371 Binding: STB_GLOBAL372 Value: 0x53C373 Size: 0x2374 - Name: __stack375 Section: .persistent376 Binding: STB_GLOBAL377 Value: 0xFFC0378 - Name: _edata379 Section: .data380 Binding: STB_GLOBAL381 Value: 0x53C382 - Name: _end383 Section: .bss384 Binding: STB_GLOBAL385 Value: 0x53E386 - Name: exit387 Index: SHN_ABS388 Binding: STB_WEAK389 Value: 0x181390 - Name: __high_bssstart391 Index: SHN_ABS392 Binding: STB_WEAK393 - Name: __crt0_call_main394 Type: STT_FUNC395 Section: .text396 Binding: STB_GLOBAL397 Value: 0x504398 Size: 0x6399 - Name: _exit400 Index: SHN_ABS401 Binding: STB_WEAK402 Value: 0x181403 - Name: open404 Index: SHN_ABS405 Binding: STB_WEAK406 Value: 0x182407 - Name: close408 Index: SHN_ABS409 Binding: STB_WEAK410 Value: 0x183411DWARF:412 debug_str:413 - test.c414 - foo415 - int416 - func417 - main418 debug_addr:419 - Length: 0x10420 Version: 0x5421 AddressSize: 0x4422 Entries:423 - Address: 0x53C424 - Address: 0x510425 - Address: 0x51C426...427