Peter, thanks.

I had been using -O2 and -O3, but I did not know about -Os. I tried it and the original error is now gone.
I am now getting a series of errors like the following:
=================

C:\Users\Paul\cc16wBFJ.o: In function `display_update':
main.c:(.text+0x108): warning: internal error: unsupported relocation error
main.c:(.text+0x1ea): warning: internal error: unsupported relocation error
C:\Users\Paul\cc16wBFJ.o: In function `wakeup_event':
main.c:(.text+0x29a): warning: internal error: unsupported relocation error

Any help appreciated.

Thanks,
Paul

On 6/1/2010 2:08 PM, Peter Bigot wrote:
...
Try compiling with -Os if you aren't already.  If that doesn't work, you'll
have to remove functions until it fits.

Peter

On Tue, Jun 1, 2010 at 1:53 PM, Paul F. Sehorne<[email protected]>  wrote:

Having gotten past the compiling phase in my effort to port the TI
Sports Watch code to mspgcc, I'm moving on to the linking phase.

I'm getting the following error:


c:\users\paul\documents\programming\texas_instruments\ez430\mspgcc4\bin\..\lib\gcc\msp430\4.4.3\..\..\..\..\bin\msp430-ld.exe:
build/chronos.430 section `.text' will not fit in region `text'

c:\users\paul\documents\programming\texas_instruments\ez430\mspgcc4\bin\..\lib\gcc\msp430\4.4.3\..\..\..\..\bin\msp430-ld.exe:
section .vectors loaded at [0000ff80,0000ffff] overlaps section .text
loaded at [00008000,00012bbd]

c:\users\paul\documents\programming\texas_instruments\ez430\mspgcc4\bin\..\lib\gcc\msp430\4.4.3\..\..\..\..\bin\msp430-ld.exe:
region `text' overflowed by 11324 bytes

I don't really know where to start.  The mspgcc docs are no help.  I know
that both IAR and CCS use a linker command file, but I don't know how to
implement such in mspgcc.

Anypointers are appreciated.

Thanks,
Paul


Reply via email to