From: Mike Frysinger Date: Sun, 5 Feb 2012 23:27:51 -0500 Subject: [U-Boot] [PATCH 1/2] RFC: create u-boot-common.lds In-Reply-To: References: <1328410966-13946-1-git-send-email-troy.kisky@boundarydevices.com> <201202052224.04780.vapier@gentoo.org> Message-ID: <201202052327.53316.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 Sunday 05 February 2012 22:43:33 Graeme Russ wrote: > On Mon, Feb 6, 2012 at 2:24 PM, Mike Frysinger wrote: > > it isn't just that. i don't think a single u-boot.lds for every arch is > > feasible. the kernel method allows all the common pieces to be in a > > common header, and then the arches to expand the specific pieces in the > > specific order. > > I can't say I'm a fan of the 'common bits' approach - It really does reduce > the readability of the linker script IMHO. It took me long enough to deal > with the fact that the lds file is pre-processed for TEXT_BASE ;) yes, it does make the linker scripts a bit more opaque, but since each arch is doing something unique, it's fairly hard to merge them into a single file. the Linux approach represents what we can do in the real world -- get beyond board-specific linker scripts and to one linker script per arch. then the vmlinux.lds.h merges a lot of the stuff that can be shared between arches. i've unified all the board/SoC linker scripts for Blackfin and now there is just one -- arch/blackfin/cpu/u-boot.lds. -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: