[U-Boot] board_f: fix calculation of reloc_off

Tom Rini trini at konsulko.com
Mon Jun 12 22:44:19 UTC 2017


On Thu, Jun 08, 2017 at 10:18:25AM +0200, Lothar Waßmann wrote:

> 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 at KARO-electronics.de>

Reviewed-by: Tom Rini <trini at konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170612/3426f2a5/attachment.sig>


More information about the U-Boot mailing list