Login

Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.

ARM Community: Conversion of GNU LD script to ARMLINK scatter file - ARM Community

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Conversion of GNU LD script to ARMLINK scatter file Rate Topic: -----

#1 User is offline   D3M0N 

  • Member
  • Pip
  • Group: Members
  • Posts: 18
  • Joined: 04-August 10

Posted 26 August 2010 - 10:49 AM

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
0

#2 User is offline   D3M0N 

  • Member
  • Pip
  • Group: Members
  • Posts: 18
  • Joined: 04-August 10

Posted 27 August 2010 - 05:10 AM

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.
0

#3 User is offline   scott 

  • Regular Contributor
  • PipPipPip
  • Group: Members.
  • Posts: 210
  • Joined: 05-October 06

Posted 27 August 2010 - 07:25 AM

View PostD3M0N, on Aug 26 2010, 11:49 AM, said:

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.


Maybe you want to try the GNU ld script support in armlink 4.1 <http://infocenter.arm.com/help/topic/com.a...a/BABEGCID.html>?
0

#4 User is offline   D3M0N 

  • Member
  • Pip
  • Group: Members
  • Posts: 18
  • Joined: 04-August 10

Posted 27 August 2010 - 08:13 AM

View Postscott, on Aug 27 2010, 07:25 AM, said:

Maybe you want to try the GNU ld script support in armlink 4.1 <http://infocenter.arm.com/help/topic/com.a...a/BABEGCID.html>?



Thanks for the information, but I wanted to know how to carry out the task in RVCT 4.0 (armlink 4.0).

Thanks and Regards
Abhinav Varma
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic