Hi Daniel,

thanks for your help. Now there seems to be another problem:

$ make
msp430-gcc -mmcu=msp430x149 -o sample StateHan.o main.o
scexample.o
/cygdrive/c/mspgcc/lib/gcc-lib/msp430/3.2.3/../../../../msp430/lib/msp2/libc.a(m
alloc.o)(.text+0x1e): In function `malloc':
/cygdrive/c/mspgcc-source/msp430/msp430-libc/src/stdlib/malloc.c:21:
internal er
ror: unsupported relocation error

Any idea?

Peter


> Peter Mueller <peter.o.muel...@gmx.de> writes:
> 
> > msp430-gcc -o sample StateHan.o main.o scexample.o
> > msp430-ld: region text is full (sample section .text)
> > msp430-ld: section .vectors [0000ffe0 -> 0000ffff] overlaps section
> .text
> 
> [snip]
> 
> > CFLAGS = -g -I. -O2 -mmcu=msp430x149
> 
> You need to pass the -mmcu option when linking too, so that a suitable
> linker script is used (and suitable library variants).
> 
> 
> Regards,
>   --Daniel
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email sponsored by: Parasoft
> Error proof Web apps, automate testing & more.
> Download & eval WebKing and get a free book.
> www.parasoft.com/bulletproofapps
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
> 

-- 
+++ GMX - Mail, Messaging & more  http://www.gmx.net +++

Jetzt ein- oder umsteigen und USB-Speicheruhr als Prämie sichern!


Reply via email to