Starting at a different address

Florian Schirmer jolt@taytron.net
Fri Apr 21 15:46:00 GMT 2000


Hi!

>> Do i need a linker script which locates the sections at the 
>> right address or what do i need? Any hint, link or idea which 
>> stick me in the right direction would be wonderful.
>
>You are correct.  You need to create a linker script that puts
>everything where you want it.  See 'info -f ld'.

Thanks for the quick reply! I hacked a linker script. But the are so many options which could be the required one that i dont know which to use :( I'm a newbie in embedded programming so dont kill me for that. I've read the ld documentation twice.

------

MEMORY
{
  ram     : ORIGIN = 0x10000, LENGTH = 3M
}

SECTIONS
{
  .data  : {
 *(.data)
  } > ram
}

-----------

The system has 3 mb ram. Does LD use the 3M as an absolute value or origin + 3MB? (which then is illegal). Is origin the value i have to set? Or do i need to set one of the section parameters like AT?

Thanks for your great help
  Florian Schirmer

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



More information about the crossgcc mailing list