> custom linker script,   using non-standard switches etc.   Anything out of
> the usual.
Now I'm not using custom scripts...

> I think the next thing to do is figure out what linker script is being
> invoked (I'm not sure how to do that).

There are linker scripts located in ldscript dirrectory of compiller. 
But changing them does not affects linking. I've copied them to project 
directory and included by the -T command. The data is still get plased 
wrong.

The scripts are to large to post them here but the lines with rodata 
from mspgcc4 and latest mspgcc20110716 are the same
   .rel.rodata    :
     {
       *(.rel.rodata)
       *(.rel.rodata.*)
       *(.rel.gnu.linkonce.r*)
     }
   .rela.rodata   :
     {
       *(.rela.rodata)
       *(.rela.rodata.*)
       *(.rela.gnu.linkonce.r*)

the section of scripts that has been changed significantly is as follows:
for mspgcc4:
MEMORY
{
   text   (rx)       : ORIGIN = 0x4000,     LENGTH = 0xbfe0
   data   (rwx)      : ORIGIN = 0x1100,     LENGTH = 0x2800
   vectors (rw)      : ORIGIN = 0xffe0,     LENGTH = 32
   bootloader(rx)    : ORIGIN = 0x0c00,     LENGTH = 1K
   infomem(rx)       : ORIGIN = 0x1000,     LENGTH = 256
   infomemnobits(rx) : ORIGIN = 0x1000,     LENGTH = 256
}
for mspgcc20110716:
MEMORY {
   sfr              : ORIGIN = 0x0000, LENGTH = 0x0010 /* END=0x0010, 
size 16 */
   peripheral_8bit  : ORIGIN = 0x0010, LENGTH = 0x00f0 /* END=0x0100, 
size 240 */
   peripheral_16bit : ORIGIN = 0x0100, LENGTH = 0x0100 /* END=0x0200, 
size 256 */
   infomem          : ORIGIN = 0x1000, LENGTH = 0x0100 /* END=0x1100, 
size 256 */
   infob            : ORIGIN = 0x1000, LENGTH = 0x0080 /* END=0x1080, 
size 128 */
   infoa            : ORIGIN = 0x1080, LENGTH = 0x0080 /* END=0x1100, 
size 128 */
   ram (wx)         : ORIGIN = 0x1100, LENGTH = 0x2800 /* END=0x3900, 
size 10K */
   rom (rx)         : ORIGIN = 0x4000, LENGTH = 0xbfe0 /* END=0xffe0, 
size 49120 */
   vectors          : ORIGIN = 0xffe0, LENGTH = 0x0020 /* END=0x10000, 
size 32 */
   /* Remaining banks are absent */
   bsl              : ORIGIN = 0x0000, LENGTH = 0x0000
   infoc            : ORIGIN = 0x0000, LENGTH = 0x0000
   infod            : ORIGIN = 0x0000, LENGTH = 0x0000
   far_rom          : ORIGIN = 0x00000000, LENGTH = 0x00000000
}



------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to