[U-Boot] [PATCH 1/2] RFC: create u-boot-common.lds
Mike Frysinger
vapier at gentoo.org
Mon Feb 6 06:48:26 CET 2012
On Sunday 05 February 2012 23:34:27 Graeme Russ wrote:
> On Mon, Feb 6, 2012 at 3:27 PM, Mike Frysinger wrote:
> > 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.
>
> Ditto for x86
>
> Maybe we should wait until all the arches have unified linker scripts
> before looking at a global script (parallels with 'skip relocation')?
i don't think we need to wait for that. if we have a header with defines, then
any linker script can be converted to that. the arches that have cleaned up
can convert over now.
seems like the big offenders in the tree are arm/m68k/mips/ppc. i have a hard
time seeing them merging into their arch/ anytime soon.
-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/20120206/87125f7a/attachment.pgp>
More information about the U-Boot
mailing list