From: Tom Rini Date: Mon, 12 Jun 2017 18:44:19 -0400 Subject: [U-Boot] board_f: fix calculation of reloc_off In-Reply-To: <1496909905-27310-1-git-send-email-LW@KARO-electronics.de> References: <1496909905-27310-1-git-send-email-LW@KARO-electronics.de> Message-ID: <20170612224419.GC10782@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de 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 Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: