This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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: Specify memory region using Linker script




Ruchika Singh wrote:
Hi:

I am very new to embedded systems and have a basic question regarding linker
scripts. How do I, in my linker script specify a memory region that is
initially empty. No input sections. I want a certain memory region allocated
for a certaon size.
 I thereafter intend to specify in my code, that certain objects when created
are allocated memory from this region by using the __attribute((section= ..
command.

As i understand if there are no input sections, the linker does not create the
memory region.

Any insights will be highly appreciated.
You might look into the sections in ld manual explaining scripting language. Like below.
http://sources.redhat.com/binutils/docs-2.15/ld/Scripts.html
Thanks in advance.

-R.




------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


------ Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/ Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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