This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: Correct text about updating linker script location counter


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]