Skip to content
Snippets Groups Projects
Commit 53207bfd authored by Lothar Waßmann's avatar Lothar Waßmann Committed by Tom Rini
Browse files

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: default avatarLothar Waßmann <LW@KARO-electronics.de>
parent 69c5d76f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment