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 <[email protected]>

Reviewed-by: Tom Rini <[email protected]>

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

Reply via email to