This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Need -un-initialized memory allocation
- From: Paul Koning <Paul_Koning at dell dot com>
- To: anton dot tichawa at chello dot at
- Cc: binutils at sourceware dot org
- Date: Thu, 3 Jul 2008 17:26:57 -0400
- Subject: Re: Need -un-initialized memory allocation
- References: <1215118090.1618.10.camel@localhost.localdomain>
>>>>> "Anton" == Anton Tichawa <anton.tichawa@chello.at> writes:
Anton> Hello List! I looked for a directive that allocates
Anton> uninitialized memory, but didn't find any. What I want is
Anton> something like
Anton> Symbol1: <reserve 0x10000 longwords> Symbol2: <reserve 200
Anton> bytes> ...
Anton> So the only effect would be the definition of the symbols.
Anton> All directives I have found (e. g. .space) initialize the
Anton> memory to zeroes, leading to a huge object file.
I believe assigning to "." will do what you need. Check the
documentation for ld, under "location counter".
paul