[U-Boot] Dump questions about u-boot relocation

Rajat Jain rajat.noida.india at gmail.com
Wed Sep 22 19:10:02 CEST 2010


Hello,

1) If a code section (from an abolutely linked executable) is linked
at address "x" but is instead loaded at address "y" would it still
execute fine? Considereding the absolute branching, gloab variable
access etc.

2) If not, then how does u-boot work after relocation? All the uboot
code & data section is linked to the flash addresses. But after
relocation is running from RAM?

3) I need to write some code that shall be linked at address "x" but
shall be running while sitting at address "y". What are the
precautions in my code that if I take, will I be able to achieve this?

Thanks,

Rajat Jain

PS: IN the above, whereever I write address, I actually mean "virtual
address" not physical.


More information about the U-Boot mailing list