From: Wolfgang Denk Date: Mon, 17 Aug 2009 21:33:53 +0200 Subject: [U-Boot] [PATCH] Fix all linker script to handle all rodata sections In-Reply-To: References: <1234999325-13456-1-git-send-email-tpiepho@freescale.com> <20090810083508.34013833DBD2@gemini.denx.de> <20090815220244.E1D49833DBD2@gemini.denx.de> Message-ID: <20090817193353.A5B5C833DBD2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Trent, In message 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.