From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vlad Lungu Date: Wed, 19 Mar 2008 12:47:08 +0200 Subject: [U-Boot-Users] [MIPS] Introduce machine_restart In-Reply-To: <20080318192432.1039624349@gemini.denx.de> References: <20080318192432.1039624349@gemini.denx.de> Message-ID: <47E0EF2C.2050909@comsys.ro> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > 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? > > Weak symbols are a compile-time thing, not a run-time thing. The linker discards weak symbols if a "regular" symbol with the same name is found, that's all. So it's actually link-time, rather than compile-time :-). Vlad