public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Charles Manning <manningc2@actrix.gen.nz>
To: "Dave Korn" <dave.korn@artimi.com>,
	"'Alan Modra'" <amodra@bigpond.net.au>
Cc: <binutils@sources.redhat.com>
Subject: Re: Why no expressions in MEMORY command?
Date: Tue, 12 Apr 2005 21:47:00 -0000	[thread overview]
Message-ID: <20050412214702.EBB9A453F@blood.actrix.co.nz> (raw)
In-Reply-To: <SERRANORmzeyNtqMk7L000000ef@SERRANO.CAM.ARTIMI.COM>


> > Because no one has cared enough to write support to handle such symbols
> > in linker scripts.
Maybe I care enough to have a crack at this:-)

>
>   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.

Hmmm bummer. It seems to come down to there being no distinction between 
expressions that can be evaluated before symbols are produced and others.

This makes the MEMORY stuff relatively limitied in its utility. There are 
work arounds, but they are far from elegant.


-- Charles



  parent reply	other threads:[~2005-04-12 21:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-12  3:41 Charles Manning
2005-04-12  8:40 ` Alan Modra
2005-04-12 13:02   ` Dave Korn
2005-04-12 20:22     ` Linus Nielsen Feltzing
2005-04-12 21:47     ` Charles Manning [this message]
2005-04-13 23:30 ` Peter Barada

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=20050412214702.EBB9A453F@blood.actrix.co.nz \
    --to=manningc2@actrix.gen.nz \
    --cc=amodra@bigpond.net.au \
    --cc=binutils@sources.redhat.com \
    --cc=dave.korn@artimi.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).