From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Tue, 08 Apr 2008 23:09:20 +0200 Subject: [U-Boot-Users] [PATCH] Make MPC83xx one step closer to full relocation. In-Reply-To: Your message of "Tue, 08 Apr 2008 22:52:52 +0200." <044901c899ba$83532450$89f96cf0$@Tjernlund@transmode.se> Message-ID: <20080408210920.56F3B24842@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 In message <044901c899ba$83532450$89f96cf0$@Tjernlund@transmode.se> you wrote: > > > > .text : > > > { > > > + _monitor_base = . ; > > > > There is no guarantee that this is the same as the start address of > > .text > > > > I am no link script expert, but I cannot see why that would not be the start > of the .text segment? There might be other segments at the start of the image... See for example cpu/mpc8xx/start.S - while at the moment we really start with .text, it would technically be more approrpriate to change the first 256 bytes (from monitor base to EXC_OFF_SYS_RESET) into .rodata or something like this. > Anyhow, we can go with the other solution instead, define the symbol in start.S > instead, if one is needed. If it cannot be avoided ;-) Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Thought for the day: What if there were no hypothetical situations?