From: Tom Rini Date: Thu, 5 Jun 2014 18:46:53 -0400 Subject: [U-Boot] [U-Boot,2/2] openrisc: fix relocation code In-Reply-To: <1400705030-11790-2-git-send-email-franck.jullien@gmail.com> References: <1400705030-11790-2-git-send-email-franck.jullien@gmail.com> Message-ID: <20140605224653.GI7841@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, May 21, 2014 at 10:43:50PM +0200, Franck Jullien wrote: > The relocation code can now relocate from anywhere to > the RAM. > > The old code assumed that the binary was copied to the RAM > by some PBL and then it just relocated the .text section > from the loaded address to the linked address. > > Now, it first checks if vectors are somewhere else than the > linked address. If yes, there are copied to address 0 (or > to the exception vector base address if register EVBAR is > present). > > Then, the .text section is relocated from its current location > to the RAM. > > Signed-off-by: Franck Jullien Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: