From: Jean-Christophe PLAGNIOL-VILLARD Date: Tue, 28 Oct 2008 07:24:44 +0100 Subject: [U-Boot] [PATCH] at91: board specific lowlevel_init.S In-Reply-To: <20081027212029.481D7832E40A@gemini.denx.de> References: <48FF0A83.5000805@ronetix.at> <20081022124136.GA10916@game.jcrosoft.org> <48FF25A6.7040601@ronetix.at> <20081022132253.GB15487@game.jcrosoft.org> <48FF3240.3080703@ronetix.at> <20081022150656.GC15487@game.jcrosoft.org> <4905E3B6.2060007@ronetix.at> <4905EBF0.7020400@gmail.com> <20081027164336.GA1778@game.jcrosoft.org> <20081027212029.481D7832E40A@gemini.denx.de> Message-ID: <20081028062444.GB6417@game.jcrosoft.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 22:20 Mon 27 Oct , Wolfgang Denk wrote: > Dear Jean-Christophe PLAGNIOL-VILLARD, > > In message <20081027164336.GA1778@game.jcrosoft.org> you wrote: > > > > > I've found that weak functions are only overwritten if the overwriting > > > function is in a file (not archive) that has strongly-linked symbols. > > > Admittedly, I've only done this with C code but expect that the assembly > > > equivalent works the same way. The idea of using weak functions seems > > > great, but suffers from some pretty cumbersome weaknesses :) > > I've found a solution but it's need to update the all u-boot linking method. > > > > Move from AR to LD. > > Well, that is exactly what Ben just described. > > > Which need some work to fit on all boards. > > Well, actually only the file lowlevel_init.o needs to be treated that > way, so the needed hcanges look not too complicated to me. I'll send a patch to move cpu/at91 to it only and an example to use it with board dir Best Regards, J.