From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessandro Rubini Date: Sun, 17 Apr 2011 19:57:05 +0200 Subject: [U-Boot] Question about relocation In-Reply-To: <4DAB1D92.3080907@aribaud.net> References: <4DAB1D92.3080907@aribaud.net> <20110417011939.GA18636@mail.gnudd.com> Message-ID: <20110417175705.GA28484@mail.gnudd.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > beginning-to-end copy or an end-to-beginning copy depending on the > source and destination addresses and size. Ori, simply, end-to-beginning when moving up. Or always end-to-beginning since we are expected to always move up (upper than the target address it can't run). It is safer, but not safe. Also, it's difficult to accomplish bcause copying and fixing addresses is done ina single run, so the relocation tables are read from the old area. Possibly relocatng first and copying then. Or, easier: if we are already high enough to overlap, don't relocate at all. If it's acceptable, I'll patch for taht. thanks /alessandro