From: Alessandro Rubini Date: Thu, 16 Sep 2010 08:23:48 +0200 Subject: [U-Boot] [PATCH 12/26] ARM: add relocation support In-Reply-To: <4C91A69A.8050102@denx.de> References: <4C91A69A.8050102@denx.de> <4C62E8E7.2000407@denx.de> <4C91356B.5060701@free.fr> Message-ID: <20100916062347.GA25290@morgana.i.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 Hello Heiko. > Hmm.. at this place code is not relocated! So it should be executed > on the right address. May I say this is a huge step back from the non-relocation case? One of the things I love(d) with u-boot (at least the ARM one) is that I could place it in flash at any address and it would just work. So when I have a new binary I first write it to another flash sector and "go" to it. Only if it works I flash at offset 0. Sure I test in RAM first, but since writing the ram image to flash is not uncommon, the final test for me has always been in flash -- also for other reasons. I also think that simpler is better and I never understood the contorsions of relocation.... but I wouldn't argue if it wasn't a step back (I know the advantages, like going to end of ram, but they don't mean much to me). Is there any chance we could go on testing on a different flash address without relinking in-between (with the risk of mismatching the two images?) Thanks /alessandro