From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Fix all linker script to handle all rodata sections
Date: Mon, 10 Aug 2009 10:35:08 +0200 [thread overview]
Message-ID: <20090810083508.34013833DBD2@gemini.denx.de> (raw)
In-Reply-To: <1234999325-13456-1-git-send-email-tpiepho@freescale.com>
Dear Trent Piepho,
In message <1234999325-13456-1-git-send-email-tpiepho@freescale.com> you wrote:
>
> A recent gcc added a new unaligned rodata section called '.rodata.str1.1',
> which needs to be added the the linker script. Instead of just adding this
> one section, we use a wildcard ".rodata*" to get all rodata linker section
> gcc has now and might add in the future.
...
> I change this to:
>
> *(.text)
> . = ALIGN(16);
> *(.eh_frame)
> *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
Unfortunately it turns out that this breaks some older tool chains.
For example, using ELDK 3.1 (binutils 2.14-5) we get:
arm-linux-ld:/home/wd/git/u-boot/work/cpu/s3c44b0/u-boot.lds:39: parse error
It seems this old version of ld does not understand the
*(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
line yet.
Do you see any want to make this backward compatible with older
versions of ld?
Thanks in advance.
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
Men will always be men -- no matter where they are.
-- Harry Mudd, "Mudd's Women", stardate 1329.8
next prev parent reply other threads:[~2009-08-10 8:35 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-07 23:29 [U-Boot] [PATCH] Fix Freescale link scripts for newer GCCs Matthew L. Creech
2009-01-22 1:11 ` Kim Phillips
2009-01-31 11:02 ` Trent Piepho
2009-01-31 20:23 ` Wolfgang Denk
2009-02-03 4:11 ` Trent Piepho
2009-02-17 2:05 ` Kim Phillips
2009-02-18 0:04 ` Wolfgang Denk
2009-02-18 18:52 ` Jon Loeliger
2009-02-18 21:54 ` Wolfgang Denk
2009-02-18 22:00 ` ksi at koi8.net
2009-02-18 23:17 ` Trent Piepho
2009-02-18 23:22 ` [U-Boot] [PATCH] Fix all linker script to handle all rodata sections Trent Piepho
2009-02-19 0:00 ` Wolfgang Denk
2009-02-19 17:52 ` Kim Phillips
2009-08-10 8:35 ` Wolfgang Denk [this message]
2009-08-15 22:02 ` Wolfgang Denk
2009-08-17 19:20 ` Trent Piepho
2009-08-17 19:33 ` Wolfgang Denk
2009-01-31 20:23 ` [U-Boot] [PATCH] Fix Freescale link scripts for newer GCCs Wolfgang Denk
2009-01-31 20:23 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090810083508.34013833DBD2@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox