From: Wolfgang Denk Date: Thu, 17 Sep 2009 14:53:59 +0200 Subject: [U-Boot] [TESTING PATCH] ppc: Relocation test patch In-Reply-To: References: <1252709159-22326-1-git-send-email-ptyser@xes-inc.com> <20090914212644.D9991832E864@gemini.denx.de> <1253143205.617.167.camel@localhost.localdomain> <20090917075051.EB16C832E864@gemini.denx.de> <20090917101542.BD7B1832E864@gemini.denx.de> Message-ID: <20090917125359.E13F6832E864@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Joakim Tjernlund, In message you wrote: > > > But why has the GOT table to fit "into built-in CPU memory"? When we > > are about to relocate U-Boot to RAM, we already have RAM working. So > > we should also be able to copy the GOT table to RAM and modify it > > there as needed before we use it? > > Before you get RAM working there are lots of references to global data and > string literals. These point to their link address so if you have loaded > u-boot at a different address than you link address you have to adjust for > the offset. Hard to do that when GOT is in flash :( Ah, I finally GOT you :-) Hm... but being able to load (and start) U-Boot from an arbitrary RAM location would be a big benefit, too, even if we still have to copy it to the correct (linked) address when storing it in flash.