diff options
author | Lothar Waßmann <LW@KARO-electronics.de> | 2017-06-08 10:18:25 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2017-06-12 08:38:41 -0400 |
commit | 53207bfd704250354c56aa74c7e96151fddee1f1 (patch) | |
tree | ebe5a2d0779d30abe485a9efd16999df6adf60a2 /common/kallsyms.c | |
parent | 69c5d76f2fd8bf645cde9f0a8225daba25d65e01 (diff) | |
download | u-boot-53207bfd704250354c56aa74c7e96151fddee1f1.tar.gz |
board_f: fix calculation of reloc_off
relocate_code() calculates the relocation offset wrt. the symbol
__image_copy_start which happens to have the same value as
CONFIG_TEXT_BASE on most systems.
When creating an i.MX boot image with an integrated IVT it is
convenient to have CONFIG_TEXT_BASE point to the start of the IVT
that is prepended to the actual code. Thus CONFIG_TEXT_BASE will
differ from __image_copy_start, while the calculation
'gd->relocaddr - __image_copy_start' still gives the right relocation
offset.
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Diffstat (limited to 'common/kallsyms.c')
0 files changed, 0 insertions, 0 deletions