diff options
author | Franck Jullien <franck.jullien@gmail.com> | 2014-05-21 22:43:50 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-05 14:44:56 -0400 |
commit | 9cd73bf85994ea06cd2fbde509e73e72d063b332 (patch) | |
tree | 9aff766af8d1d19b3132f3b27e71648451305651 /tools/omapimage.c | |
parent | c346cf13509c9bfcd98c679a9822bb346432b9b6 (diff) | |
download | u-boot-imx-9cd73bf85994ea06cd2fbde509e73e72d063b332.zip u-boot-imx-9cd73bf85994ea06cd2fbde509e73e72d063b332.tar.gz u-boot-imx-9cd73bf85994ea06cd2fbde509e73e72d063b332.tar.bz2 |
openrisc: fix relocation code
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@gmail.com>
Diffstat (limited to 'tools/omapimage.c')
0 files changed, 0 insertions, 0 deletions