Your GDB log would make it look like it crashes in main(), or maybe when you attempt to transfer control to main().
In your GDB log, I see this:Rather than executing the next command after this, I would dump the contents of r1 to see if it looks valid and then attempt to step into the call to main() to see exactly where things go awry. So my next two commands would be the following:The value of r1 should point to the beginning of your main function which you can get by disassembling it to see at which address it begins:
In your GDB log, I see this:
Code:
454 ldr r1, =main(gdb) n455 blx r1Code:
(gdb) p/x $r1...(gdb) si...Code:
(gdb) disass main...[code]Statistics: Posted by adam_green — Mon Mar 03, 2025 5:30 am