
22 Sep
2010
22 Sep
'10
7:10 p.m.
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.