[U-Boot] [PATCH] Fix all linker script to handle all rodata sections

Wolfgang Denk wd at denx.de
Mon Aug 17 21:33:53 CEST 2009


Dear Trent,

In message <Pine.LNX.4.58.0908171214470.11911 at shell2.speakeasy.net> you wrote:
>
> > > Do you see any want to make this backward compatible with older
> > > versions of ld?
> 
> I don't have an ld old enough to not like that line so I'm not sure
> what the problem is exactly.

The problem is that SORT_BY_ALIGNMENT() and SORT_BY_NAME() were
introduced for binutils 2.16, so any older versions will barf on the
linker scripts.

> There wouldn't be any significant downside to changing it to:
> 
>  *(SORT_BY_ALIGNMENT(.rodata*))
> 
> If that would work with your ld.  Using *(.rodata*) will result in extra
> padding and a larger data segment.  It may not be all that much extra
> though...

Differences are minimal, actually.

Please see my approach to solve this at
http://thread.gmane.org/gmane.comp.boot-loaders.u-boot/66080

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Veni, Vidi, VISA:
        I came, I saw, I did a little shopping.


More information about the U-Boot mailing list