This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[Patch/ld] Tweak doc of --heap, --stack ld options
- From: Danny Smith <dannysmith at clear dot net dot nz>
- To: Binutils <binutils at sourceware dot org>
- Date: Thu, 05 Jul 2007 22:29:35 +1200
- Subject: [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]