This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Need -un-initialized memory allocation
On Thu, 2008-07-03 at 17:26 -0400, Paul Koning wrote:
> >>>>> "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
>
The problem remains the same. Assigning e. g.
Symbol1: . = . + 4 * 0x100000
initializes the memory, i. e. creates a huge file. This is also true
when I place the symbols in the bss section.
Anton.