From: vb Date: Thu, 24 Jul 2008 06:47:08 -0700 Subject: [U-Boot-Users] Changing u-boot relocation scheme In-Reply-To: <20080724115824.440fea19@hskinnemo-gx745.norway.atmel.com> References: <20080724031826.ECD9B248B9@gemini.denx.de> <20080724115824.440fea19@hskinnemo-gx745.norway.atmel.com> 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 Thu, Jul 24, 2008 at 2:58 AM, Haavard Skinnemoen wrote: > > IMO, it's best to avoid such pointers in the first place, especially > ones that are statically initialized. > > Haavard > On Thu, Jul 24, 2008 at 5:23 AM, Jerry Van Baren wrote: > > OK, now I'm curious: what happens if you make the pf() pointer constant? > This will (should) change it from an initialized variable in the .data Haavard, Jerry, your both suggestions are very right, but you are missing an important point: I am talking about porting code to u-boot, libraries with hundreds of files, written and working in other environments - they can't be compiled in as is, and changing them is prohibitively inefficient. cheers, /vb