This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
RE: Why no expressions in MEMORY command?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Alan Modra'" <amodra at bigpond dot net dot au>,"'Charles Manning'" <manningc2 at actrix dot gen dot nz>
- Cc: <binutils at sources dot redhat dot com>
- Date: Tue, 12 Apr 2005 14:01:38 +0100
- Subject: RE: Why no expressions in MEMORY command?
----Original Message----
>From: Alan Modra
>Sent: 12 April 2005 09:41
> On Tue, Apr 12, 2005 at 03:41:19PM +1200, Charles Manning wrote:
>> Why can't you use scripts ike:
>
> Because no one has cared enough to write support to handle such symbols
> in linker scripts.
FYI: I looked into it in some depth once; it would require quite a hefty
bit of patching, since the information about symbol values isn't evaulated
yet at the time the parser is reading the MEMORY command. See PR ld/518
http://sourceware.org/bugzilla/show_bug.cgi?id=518, also see
http://sources.redhat.com/ml/binutils/2004-03/msg00540.html
for a detailed analysis, and
http://sources.redhat.com/ml/binutils/2004-03/msg00571.html
for a suggested solution.
cheers,
DaveK
--
Can't think of a witty .sigline today....