[U-Boot] [PATCH] Switch from archive libraries to partial linking

Mike Frysinger
2010-11-15T11:44:13Z

On Monday, November 08, 2010 17:04:32 Sebastien Carlier wrote:
> This commit changes all Makefiles to use partial linking (ld -r) instead of
> creating library archives, which forces all symbols to participate in
> linking, allowing non-weak symbols to override weak symbols as intended.
> This approach is also used by Linux, from which the gmake function
> cmd_link_o_target (added at the end of config.mk and used in all
> Makefiles) is inspired.

linux takes it a step further ... it partially links everything into one .o
before turning that into the final ELF. why dont we do the same (partially
link everything into u-boot.o and then just do u-boot.o->u-boot) ? it should
allow us to drop the start/end group flags in the process.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20101115/e97fef71/attachment.pgp