This is the mail archive of the crossgcc@sourceware.cygnus.com mailing list for the crossgcc project.
See the CrossGCC FAQ for lots more infromation.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |