> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: den 18 mars 2008 20:25 > To: Jean-Christophe PLAGNIOL-VILLARD > Cc: Shinya Kuribayashi; Joakim Tjernlund; u-boot-users@lists.sourceforge.net > Subject: Re: [U-Boot-Users] [MIPS] Introduce machine_restart > > In message <[EMAIL PROTECTED]@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 <[EMAIL PROTECTED]> > 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 > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users