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]

Re: Need -un-initialized memory allocation


>>>>> "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


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