aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texinfo
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2015-07-14 16:19:22 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2015-08-03 20:18:49 +0100
commit127fcdff0541697ffd7169abafe5a51118bf65d0 (patch)
tree6dc73522302c8b565984ff669a69c810494df945 /ld/ld.texinfo
parent4122b41366b2e810bbf016d7c5514a496f0aca86 (diff)
downloadgdb-127fcdff0541697ffd7169abafe5a51118bf65d0.zip
gdb-127fcdff0541697ffd7169abafe5a51118bf65d0.tar.gz
gdb-127fcdff0541697ffd7169abafe5a51118bf65d0.tar.bz2
ld/doc: Document that multiple MEMORY commands are allowed.
The linker documentation explicitly states that there can be only one MEMORY command. This is not true. Multiple MEMORY commands are allowed, the contents of all will be treated as if a single MEMORY command was given. Update the documentation to make this clear to the users. ld/ChangeLog: * ld.texinfo (MEMORY): Explain that multiple MEMORY commands are acceptable.
Diffstat (limited to 'ld/ld.texinfo')
-rw-r--r--ld/ld.texinfo7
1 files changed, 4 insertions, 3 deletions
diff --git a/ld/ld.texinfo b/ld/ld.texinfo
index b48396d..8a7a08f 100644
--- a/ld/ld.texinfo
+++ b/ld/ld.texinfo
@@ -4970,9 +4970,10 @@ set section addresses based on the memory regions, and will warn about
regions that become too full. The linker will not shuffle sections
around to fit into the available regions.
-A linker script may contain at most one use of the @code{MEMORY}
-command. However, you can define as many blocks of memory within it as
-you wish. The syntax is:
+A linker script may contain many uses of the @code{MEMORY} command,
+however, all memory blocks defined are treated as if they were
+specified inside a single @code{MEMORY} command. The syntax for
+@code{MEMORY} is:
@smallexample
@group
MEMORY