From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joakim Tjernlund Date: Tue, 18 Mar 2008 23:23:50 +0100 Subject: [U-Boot-Users] [MIPS] Introduce machine_restart In-Reply-To: <20080318192432.1039624349@gemini.denx.de> References: Your message of "Tue, 18 Mar 2008 19:43:38 +0100." <20080318184338.GA8728@game.jcrosoft.org> <20080318192432.1039624349@gemini.denx.de> Message-ID: <005301c88946$bde33800$39a9a800$@Tjernlund@transmode.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > -----Original Message----- > From: wd at denx.de [mailto:wd at denx.de] > Sent: den 18 mars 2008 20:25 > To: Jean-Christophe PLAGNIOL-VILLARD > Cc: Shinya Kuribayashi; Joakim Tjernlund; u-boot-users at lists.sourceforge.net > Subject: Re: [U-Boot-Users] [MIPS] Introduce machine_restart > > In message <004701c88928$4f457bb0$edd07310$@Tjernlund@transmode.se> > Joakim Tjernlund wrote: > > > > I don't think it is good to use global fun ptrs. These are not > > available until > > relocated to RAM. > > Agreed! > > In message <20080318184338.GA8728@game.jcrosoft.org> > Jean-Christophe Plagniol-Villar wrote: > > > > If possible I will prefer a weak function > > ...which raises the interesting question if, and how, weak function > pointers work before relocation. > > Has anyone ever tested / analyzed this? >From memory during my work on uClibc ld.so: It is no difference, the weak function makes it possible to have several versions and select one at link time. I THINK the linker will use the first it finds, weak or not. That implies that the weak functions must be presented last on the linker cmd line. Jocke > > Best regards, > > Wolfgang Denk >