This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Conversion of GNU LD script to ARMLINK scatter file

Note: This was originally posted on 26th August 2010 at http://forums.arm.com

Hey all,

As part of my exercise to migrate code from Codesourcery to RVCT 4.0, I need to convert a codesourcery compatible ld script to armlink compatible scatter file. Can someone guide me through it or any tutorial on the topic would be very helpful.

Thanks and Regards
Abhinav Varma
Parents
  • Note: This was originally posted on 27th August 2010 at http://forums.arm.com

    Hey all,

    I started conversion of my LD script to an armlink scatter file. But I am really not able to specify my symbols (which were present in the LD script; _etext for example). Another thing I wanted to know is how do we specify the output sections in the scatter file. I noticed that we can specify the output regions but there is no mention of output sections. If it is not needed, then which output regions should I place my .text , .data and .bss sections? The last query is that do scatter files have an equivalen symbol to "." ie the location counter found in LD scripts.
Reply
  • Note: This was originally posted on 27th August 2010 at http://forums.arm.com

    Hey all,

    I started conversion of my LD script to an armlink scatter file. But I am really not able to specify my symbols (which were present in the LD script; _etext for example). Another thing I wanted to know is how do we specify the output sections in the scatter file. I noticed that we can specify the output regions but there is no mention of output sections. If it is not needed, then which output regions should I place my .text , .data and .bss sections? The last query is that do scatter files have an equivalen symbol to "." ie the location counter found in LD scripts.
Children
No data