mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-11 08:25:30 +08:00
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.
This commit is contained in:
@ -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>
|
2004-11-19 Jon Beniston <jon@beniston.com>
|
||||||
|
|
||||||
* ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
|
* ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
|
||||||
|
@ -3843,19 +3843,19 @@ attributes.
|
|||||||
@kindex ORIGIN =
|
@kindex ORIGIN =
|
||||||
@kindex o =
|
@kindex o =
|
||||||
@kindex org =
|
@kindex org =
|
||||||
The @var{origin} is an expression for the start address of the memory
|
The @var{origin} is an numerical expression for the start address of
|
||||||
region. The expression must evaluate to a constant before memory
|
the memory region. The expression must evaluate to a constant and it
|
||||||
allocation is performed, which means that you may not use any section
|
cannot involve any symbols. The keyword @code{ORIGIN} may be
|
||||||
relative symbols. The keyword @code{ORIGIN} may be abbreviated to
|
abbreviated to @code{org} or @code{o} (but not, for example,
|
||||||
@code{org} or @code{o} (but not, for example, @code{ORG}).
|
@code{ORG}).
|
||||||
|
|
||||||
@kindex LENGTH =
|
@kindex LENGTH =
|
||||||
@kindex len =
|
@kindex len =
|
||||||
@kindex l =
|
@kindex l =
|
||||||
The @var{len} is an expression for the size in bytes of the memory
|
The @var{len} is an expression for the size in bytes of the memory
|
||||||
region. As with the @var{origin} expression, the expression must
|
region. As with the @var{origin} expression, the expression must
|
||||||
evaluate to a constant before memory allocation is performed. The
|
be numerical only and must evaluate to a constant. The keyword
|
||||||
keyword @code{LENGTH} may be abbreviated to @code{len} or @code{l}.
|
@code{LENGTH} may be abbreviated to @code{len} or @code{l}.
|
||||||
|
|
||||||
In the following example, we specify that there are two memory regions
|
In the following example, we specify that there are two memory regions
|
||||||
available for allocation: one starting at @samp{0} for 256 kilobytes,
|
available for allocation: one starting at @samp{0} for 256 kilobytes,
|
||||||
|
Reference in New Issue
Block a user