This is the mail archive of the crossgcc@sources.redhat.com 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]

Re: base adress arm board


Sascha Andres wrote:
hi,
Hi.
 

when changing the base adress in the ldscripts,
it seems not to interest the compiler / linker.
i build an arm-elf toolchain, and it works -
except that the base adress is locked to 0x8000
and my board needs it at 0x02000000. so i tried
the -tText optin but this is unrecognized by gcc.
so i changed the ldscripty - but that changed nothing.
so how can i say the gcc it should compile to
base adress 0x02000000 ??

Your linker script must contain the following elements (if the lenth of your RAM is, for example, 0x00100000):

MEMORY {
               ...
               ram :           org = 0x02000000, len = 0x00100000
               ...
}

SECTIONS {
       .text : {
               *(.text)
               *(.rodata)
               *(.init)
               *(.fini)
               *(.glue_7t)
               *(.glue_7)
       } > ram
    ...

 
ciao sascha

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


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