X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=ld%2Fld.texinfo;h=8ecdef2ba04daefa1fa45ca3d9a0d7f49e463f7f;hb=344a211f9995c36b116eb81c6d5a9d1839ba54b7;hp=9b822bd92bed0c250328f3847cffc4f2a24c475f;hpb=4e53152f8faf67e5af38e7b8e755113ea1719124;p=deliverable%2Fbinutils-gdb.git diff --git a/ld/ld.texinfo b/ld/ld.texinfo index 9b822bd92b..8ecdef2ba0 100644 --- a/ld/ld.texinfo +++ b/ld/ld.texinfo @@ -230,7 +230,8 @@ of multiple-letter options are accepted. Note - if the linker is being invoked indirectly, via a compiler driver (eg @samp{gcc}) then all the linker command line options should be -prefixed by @samp{-Wl,} like this: +prefixed by @samp{-Wl,} (or whatever is appropriate for the particular +compiler driver) like this: @smallexample gcc -Wl,--startgroup foo.o bar.o -Wl,--endgroup @@ -558,8 +559,8 @@ which caused the archive member to be brought in. @kindex --nmagic @item -n @itemx --nmagic -Set the text segment to be read only, and mark the output as -@code{NMAGIC} if possible. +Turn off page alignment of sections, and mark the output as +@code{NMAGIC} if possible. @kindex -N @kindex --omagic @@ -2126,7 +2127,7 @@ The full description of an output section looks like this: @var{output-section-command} @var{output-section-command} @dots{} - @} [>@var{region}] [:@var{phdr} :@var{phdr} @dots{}] [=@var{fillexp}] + @} [>@var{region}] [AT>@var{lma_region}] [:@var{phdr} :@var{phdr} @dots{}] [=@var{fillexp}] @end group @end smallexample @@ -2631,7 +2632,7 @@ like this: @var{output-section-command} @var{output-section-command} @dots{} - @} [>@var{region}] [:@var{phdr} :@var{phdr} @dots{}] [=@var{fillexp}] + @} [>@var{region}] [AT>@var{lma_region}] [:@var{phdr} :@var{phdr} @dots{}] [=@var{fillexp}] @end group @end smallexample We've already described @var{section}, @var{address}, and @@ -2685,6 +2686,7 @@ SECTIONS @{ @node Output Section LMA @subsubsection Output section LMA +@kindex AT>@var{lma_region} @kindex AT(@var{lma}) @cindex load address @cindex section load address @@ -2695,7 +2697,9 @@ Address}). The linker will normally set the LMA equal to the VMA. You can change that by using the @code{AT} keyword. The expression @var{lma} that -follows the @code{AT} keyword specifies the load address of the section. +follows the @code{AT} keyword specifies the load address of the +section. Alternatively, with @samp{AT>@var{lma_region}} expression, +you may specify a memory region for the section's load address. @xref{MEMORY}. @cindex ROM initialized data @cindex initialized data in ROM