[U-Boot] [U-Boot,2/2] openrisc: fix relocation code
Tom Rini
trini at ti.com
Fri Jun 6 00:46:53 CEST 2014
On Wed, May 21, 2014 at 10:43:50PM +0200, Franck Jullien wrote:
> The relocation code can now relocate from anywhere to
> the RAM.
>
> The old code assumed that the binary was copied to the RAM
> by some PBL and then it just relocated the .text section
> from the loaded address to the linked address.
>
> Now, it first checks if vectors are somewhere else than the
> linked address. If yes, there are copied to address 0 (or
> to the exception vector base address if register EVBAR is
> present).
>
> Then, the .text section is relocated from its current location
> to the RAM.
>
> Signed-off-by: Franck Jullien <franck.jullien at gmail.com>
Applied to u-boot/master, thanks!
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140605/a707a0c5/attachment.pgp>
More information about the U-Boot
mailing list