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/ld] Tweak doc of --heap, --stack ld options


The description of the PE-specific ld options --heap and --stack
in ld.texinfo do not state the units used when specifying "amount" of
memory.
A recent bug report to mingw.org demonstrated that this can cause
confusion.

The following explicity specifies bytes as the unit 

Danny

2007-07-05  Danny Smith  <dannysmith@users.sourceforge.net>

	* ld.texinfo (--heap): Replace 'amount' with 'number of bytes'.
	(--stack): Likewise.

Index: ld.texinfo
===================================================================
RCS file: /cvs/src/src/ld/ld.texinfo,v
retrieving revision 1.197
diff -u -3 -p -r1.197 ld.texinfo
--- ld.texinfo	18 Jun 2007 12:38:22 -0000	1.197
+++ ld.texinfo	5 Jul 2007 10:15:03 -0000
@@ -2073,8 +2073,8 @@ file offsets which are multiples of this
 @kindex --heap
 @item --heap @var{reserve}
 @itemx --heap @var{reserve},@var{commit}
-Specify the amount of memory to reserve (and optionally commit) to be
-used as heap for this program.  The default is 1Mb reserved, 4K
+Specify the number of bytes of memory to reserve (and optionally
commit)
+to be used as heap for this program.  The default is 1Mb reserved, 4K
 committed.
 [This option is specific to the i386 PE targeted port of the linker]
 
@@ -2343,8 +2343,8 @@ addresses which are a multiple of this n
 @kindex --stack
 @item --stack @var{reserve}
 @itemx --stack @var{reserve},@var{commit}
-Specify the amount of memory to reserve (and optionally commit) to be
-used as stack for this program.  The default is 2Mb reserved, 4K
+Specify the number of bytes of memory to reserve (and optionally
commit)
+to be used as stack for this program.  The default is 2Mb reserved, 4K
 committed.
 [This option is specific to the i386 PE targeted port of the linker]


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