[U-Boot] [PATCH v3] Switch from archive libraries to partial linking
Sebastien Carlier
sebastien.carlier at gmail.com
Wed Nov 17 14:30:56 CET 2010
Dear Wolfgang,
On 2010-11-15 11:54:07, Wolfgang Denk wrote:
>
> I notice that the patch affects the size of the resulting U-Boot
> images.
The size increase you noted seems to completely go away when adding
--gc-sections to LDFLAGS, but this option apparently brings its own
issues when the linker discards important unreferenced bits:
http://www.mail-archive.com/u-boot@lists.denx.de/msg41762.html
http://www.mail-archive.com/u-boot@lists.denx.de/msg42063.html
These problems can be fixed within linker scripts, but I think it might
be safer to use --gc-sections for diagnostic purposes only...
> MPC8xx boards break with long lists of multiple definitions of
> symbols, like that:
>
> Configuring for FPS860L board...
> lib/libgeneric.o: In function `vsprintf':
> /home/wd/git/u-boot/work/lib/vsprintf.c:480: multiple definition of `vsprintf'
> ...
>
> Have you seen that, too?
Unfortunately I have not been able to reproduce these errors with the
toolchain I am using (gcc 4.4.5 and binutils 2.20.1.20100303, based on
emdebian squeeze packages). Can you please point me to the toolchain
you are using?
Regards,
--
Sebastien
More information about the U-Boot
mailing list