[U-Boot] [PATCH 0/2] [RFC] DEBUG: relocate to fixed address

Henrik Nordström henrik at henriknordstrom.net
Wed Nov 28 00:36:16 CET 2012


tis 2012-11-27 klockan 16:22 -0600 skrev Scott Wood:

> How am I going to script gdb to figure out the relocation address when  
> I'm just running it on the image to get symbols, not actually  
> connecting to the target?

It can be calculated from ram size and size of your u-boot binary
including bss (reported by size on the elf binary).

If you have u-boot running then bdinfo shows the address.

Hm.. wasn't there talk about a non-relocating u-boot binary for
debugging? Isn't that more appropriate for what you are trying to
accomplish?

> Where would you get the symbol table to load that matches U-Boot  
> post-relocation?

GDB supports symbol table relocation using add-symbol-file command.

Regards
Henrik



More information about the U-Boot mailing list