From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 12 Feb 2007 12:18:04 -0700 From: "Mark A. Greer" To: "Mark A. Greer" , linuxppc-dev , Olaf Hering , Paul Mackerras Subject: Re: Okay to change default zImage link/load address? Message-ID: <20070212191803.GA2729@mag.az.mvista.com> References: <20070209184345.GA28127@mag.az.mvista.com> <20070209185107.GA12703@aepfle.de> <20070209185528.GB28127@mag.az.mvista.com> <45CCCCAD.2040507@am.sony.com> <20070209224010.GB7339@localhost.localdomain> <20070209232100.GD12035@mag.az.mvista.com> <20070209232533.GE12035@mag.az.mvista.com> <20070210005330.GD8276@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20070210005330.GD8276@localhost.localdomain> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, Feb 10, 2007 at 11:53:31AM +1100, David Gibson wrote: > On Fri, Feb 09, 2007 at 04:25:33PM -0700, Mark A. Greer wrote: > > On Fri, Feb 09, 2007 at 04:21:00PM -0700, Mark A. Greer wrote: > > > On Sat, Feb 10, 2007 at 09:40:10AM +1100, David Gibson wrote: > > > > > > > Note that the zImage is already build -fPIC and capable of relocating > > > > itself if loaded at an address other than 4MB... > > > > > > That doesn't address the issue. > > > > > > Many firmwares look at the address in the ELF header and that's where > > > they download it, period. Right now, that address is 4MB, period. > > > 4MB doesn't work on some platforms so I'm looking for an acceptable > > > alternative. > > > > David, if I sounded rude, I didn't mean to. > > No no. I see your point. > > Hrm... I've already been thinking that we'll need to make the crt0.S > replaceable by platform. The same is probably true for the linker > script. Looks like objcopy can change the addr for us. So we could pass a CONFIG_ value from the Makefile to 'wrapper' and have wrapper run objcopy. Seems easier than having to make your own linker script just to change the addr. Mark