From: Mike Frysinger Date: Mon, 15 Nov 2010 06:44:13 -0500 Subject: [U-Boot] [PATCH] Switch from archive libraries to partial linking In-Reply-To: <1289253872-16891-1-git-send-email-sebastien.carlier@gmail.com> References: <1289253872-16891-1-git-send-email-sebastien.carlier@gmail.com> Message-ID: <201011150644.14153.vapier@gentoo.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 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