Linking and Memory Maps (newbie question)

Victor V. Vengerov vvv at oktet.ru
Thu Nov 6 10:17:38 UTC 2003


James Yates wrote:

>   I am trying to run the hello_world c program for rtems, but it seems to want to link for my ROM area 0x0. I would like to link this to be placed in SRAM 0x800000 so that I can treat it like any other application I have written for this board so far, but cant work out how to make it link to RAM and not ROM.
>
>	Can anyone help?
>  
>
Most likely you need to edit linkcmds file. This is linker script which 
specify how to link your program, and, particularly,
where to locate your program sections.

To better understand what to do, I'll address you to GNU linker 
documentation
(most likely, info files installed at /usr/share/info/ld.info*). It has 
comprehensive description
of linker script file format.

Hope this helps,
Victor

-- 
Victor V. Vengerov
OKTET Ltd.
Ulianovskaya st., 1, office 533, St.-Petersburg 198504 Russia
phone: +7 812 4284384(work),+7 812 9389372(mobile),+7 812 4281653(home)





More information about the users mailing list