[U-Boot] [RFC PATCH] arm: provide a CONFIG flag for disabling relocation
Albert ARIBAUD
albert.aribaud at free.fr
Fri Mar 25 19:35:36 CET 2011
Le 25/03/2011 17:12, Aneesh V a écrit :
> Another problem I have with relocation is that it makes debugging with
> JTAG debugers more difficult. The addresses of symbols in the ELF
> target are no longer valid. Of course, you can load the symbols at an
> offset from the original location. But one has to first enable debug
> prints, find the relocation offset, use it while loading the symbols
> before you can do source level debugging.
Actually you don't need recompiling: simply set a breakpoint at the
entry of relocate_code and once you hit the bp, look up r2: it contains
the destination. If you want the offset rather than the absolute
address, set the breakpoint right after the 'sub r9, r6, r0' round line
222: r9 will then give you the offset. Unload the current symbols,
reload the symbols with the relevant offset, and there you go.
Amicalement,
--
Albert.
More information about the U-Boot
mailing list