public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Dump questions about u-boot relocation
@ 2010-09-22 17:10 Rajat Jain
  2010-09-22 19:33 ` Albert ARIBAUD
  0 siblings, 1 reply; 2+ messages in thread
From: Rajat Jain @ 2010-09-22 17:10 UTC (permalink / raw)
  To: u-boot

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-22 19:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-22 17:10 [U-Boot] Dump questions about u-boot relocation Rajat Jain
2010-09-22 19:33 ` Albert ARIBAUD

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox