[U-Boot-Users] debugging relocated code
Ho Lee
flylist at linuxkernel.net
Tue May 25 20:49:00 CEST 2004
Message
Hi Stuart,
Try the 'add-symbol-file' command. It relocates symbols to specified address.
In your case, you can relocate symbols by following commands.
gdb> add-symbol-file u-boot 0x0ff03000
gdb> file u-boot
You may find more information in gdb manual.
Sincerely,
Ho
----- Original Message -----
From: Stuart Yoder
To: u-boot-users at lists.sourceforge.net
Sent: Tuesday, May 25, 2004 11:27 AM
Subject: [U-Boot-Users] debugging relocated code
What is typically done to debug relocated code with gdb? For example, u-boot is linked at 0xFFF0000, but then relocates itself to
0x0FF03000. The debug symbols all reference the linked location. After the relocation occurs gdb is lost as far as symbolic
information goes.
Am I supposed to link the code to the place I know it will end up after relocation?
Anyone know of a way in gdb to relocate all the symbols?
Thanks,
Stuart Yoder
More information about the U-Boot
mailing list