aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-11-19 09:38:04 +0000
committerNick Clifton <nickc@redhat.com>2004-11-19 09:38:04 +0000
commit9cd6d51a560c784509b87b6d5bca7470b43dd9bc (patch)
tree1e05004d2e5c07a6d4fcd255d193d0130f40882a
parent3ec5763260bc86f8b87d3ad985336665120edf0b (diff)
downloadbinutils-9cd6d51a560c784509b87b6d5bca7470b43dd9bc.zip
binutils-9cd6d51a560c784509b87b6d5bca7470b43dd9bc.tar.gz
binutils-9cd6d51a560c784509b87b6d5bca7470b43dd9bc.tar.bz2
PR 518
Update the descriptions of the ORIGIN and LENGTH fields in the MEMORY command, to explicitly state that symbols cannot be used in their expressions.
-rw-r--r--ld/ChangeLog7
-rw-r--r--ld/ld.texinfo14
2 files changed, 14 insertions, 7 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 85ed0cf..cb4ef16 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,10 @@
+2004-11-19 Nick Clifton <nickc@redhat.com>
+
+ PR 518
+ * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
+ LENGTH fields in the MEMORY command, to explicitly state that
+ symbols cannot be used in their expressions.
+
2004-11-19 Jon Beniston <jon@beniston.com>
* ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index ab78ece..b21313a 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -3843,19 +3843,19 @@ attributes.
@kindex ORIGIN =
@kindex o =
@kindex org =
-The @var{origin} is an expression for the start address of the memory
-region. The expression must evaluate to a constant before memory
-allocation is performed, which means that you may not use any section
-relative symbols. The keyword @code{ORIGIN} may be abbreviated to
-@code{org} or @code{o} (but not, for example, @code{ORG}).
+The @var{origin} is an numerical expression for the start address of
+the memory region. The expression must evaluate to a constant and it
+cannot involve any symbols. The keyword @code{ORIGIN} may be
+abbreviated to @code{org} or @code{o} (but not, for example,
+@code{ORG}).
@kindex LENGTH =
@kindex len =
@kindex l =
The @var{len} is an expression for the size in bytes of the memory
region. As with the @var{origin} expression, the expression must
-evaluate to a constant before memory allocation is performed. The
-keyword @code{LENGTH} may be abbreviated to @code{len} or @code{l}.
+be numerical only and must evaluate to a constant. The keyword
+@code{LENGTH} may be abbreviated to @code{len} or @code{l}.
In the following example, we specify that there are two memory regions
available for allocation: one starting at @samp{0} for 256 kilobytes,