From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Likely Date: Sat, 26 Jul 2008 02:06:36 -0400 Subject: [U-Boot-Users] Changing u-boot relocation scheme In-Reply-To: <20080725205017.564dedff@siona.local> References: <20080724185734.6d79c419@hskinnemo-gx745.norway.atmel.com> <20080725042816.4F8B1248A5@gemini.denx.de> <20080725111041.4c0b925a@siona.local> <1216986958.17719.13.camel@duo> <20080725141909.4a635af0@siona.local> <1216996436.7972.14.camel@duo> <4889EF68.7090108@ge.com> <20080725205017.564dedff@siona.local> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jul 25, 2008 at 2:50 PM, Haavard Skinnemoen wrote: > Ok, I'll stop the chest-beating now. But please stop trying to tell > people that adding a powerpc-specific option (which nobody seems to > know how really works) to the command line will work on any other > architectures than powerpc. You are completely right. For the purposes of this discussion, this is a powerpc-centric problem. The relocation code is written in assembly and is processor specific. Let the ARM folks make sure ARM relocation works (and I think it already does). Let the MIPS folks do the same. Each arch has it's own set of CFLAGS and LDFLAGS needed to produce a sane binary. They should be picked off and fixed one arch at a time. BTW, searching for assignments to reloc_off in the source will tell you which platforms are broken. g. -- Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd.