From: Wolfgang Denk Date: Wed, 17 Mar 2004 22:07:47 +0100 Subject: [U-Boot-Users] MIPS (purple) compilation problems. In-Reply-To: Your message of "Wed, 17 Mar 2004 15:32:29 +0200." <4058536D.7020400@il.marvell.com> Message-ID: <20040317210752.DAC90C0655@atlas.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 <4058536D.7020400@il.marvell.com> you wrote: > > The code I disassemble below is the u-boot image. Yes, that much was clear. My question was: is this the image on the disk of your development host, or in flash on your target system before relocation, or in RAM on your target system after relocation? > As I understand the code must be PIC, other wise when we will relocate No. The code must be relocatable, but not PIC. > to the DRAM in the next function > call we will jump back to the Flash, cause the compiler might use It will not, because we relocate it. Please note that to relocate code means more than just copying it to a different address. > absolute jump and not a relative branch/jump. This is why we relocate the code. > Can you please send me a short description how did you built your cross > compiler. See http://www.denx.de/twiki/bin/view/DULG/ELDKRebuildingComponents#Section_3.7.3. Best regards, Wolfgang Denk -- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de "Wagner's music is better than it sounds." - Mark Twain