PATCH: Correct text about updating linker script location counter
Nick Clifton
nickc@redhat.com
Tue Apr 7 08:06:00 GMT 2009
Hi Guys,
I am applying the patch below to update the documentation describing
how the location counter in linker scripts is updated.
Cheers
Nick
ld/ChangeLog
2009-04-07 Nick Clifton <nickc@redhat.com>
* ld.texinfo (Output Section Address): Note that specifying an
address for an output section will only change the location
counter if the output section is used.
Index: ld/ld.texinfo
===================================================================
RCS file: /cvs/src/src/ld/ld.texinfo,v
retrieving revision 1.238
diff -c -3 -p -r1.238 ld.texinfo
*** ld/ld.texinfo 6 Apr 2009 00:47:09 -0000 1.238
--- ld/ld.texinfo 7 Apr 2009 08:04:00 -0000
*************** This works because @code{ALIGN} returns
*** 3643,3649 ****
aligned upward to the specified value.
Specifying @var{address} for a section will change the value of the
! location counter.
@node Input Section
@subsection Input Section Description
--- 3643,3650 ----
aligned upward to the specified value.
Specifying @var{address} for a section will change the value of the
! location counter, provided that the section is non-empty. (Empty
! sections are ignored).
@node Input Section
@subsection Input Section Description
More information about the Binutils
mailing list