This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Issue Using Large Memory Model with new GCC for MSP430(X)

Other Parts Discussed in Thread: MSP430F5438

After a significant bout with MSPGCC trying to get it to compile and link using largememory model (-mlarge) for the MSP430F5438, I noticed CCSv6 was available in beta release along with the new GCC compiler.  Currently my compiled executable is just over 42k, which accounting for all the other "near" memory, is just over the 65k boundary.  Since my original IDE setup was MSPGCC and eclipse, I decided to download and set up the new GCC toolchain in eclipse.  I was able to successfully compile and link a "blink" program, but ran into all sorts of headache setting up the debug interface.  So I dropped that idea and just installed CCSv6.  

I have now copied my original project over to CCSv6 and am using this with the new GCC toolchain.  However, since I crossed over 42k of compiled code size, the linker is giving the following error:

gmake: Target `all' not remade because of errors.
relocation truncated to fit: R_MSP430X_ABS16 against `.tm_clone_table'
gmake: *** [DownhillSlide.out] Error 1
relocation truncated to fit: R_MSP430X_ABS16 against symbol `__TMC_END__' defined in .tm_clone_table section in c:/ti/ccsv6/tools/compiler/i686-pc-mingw32/bin/../lib/gcc/msp430-elf/4.8.0/430x/crtend.o
relocation truncated to fit: R_MSP430X_ABS16 against `.tm_clone_table'
relocation truncated to fit: R_MSP430X_ABS16 against `.tm_clone_table'
relocation truncated to fit: R_MSP430X_ABS16 against `.tm_clone_table'
region `ROM' overflowed by 150 bytes
relocation truncated to fit: R_MSP430X_ABS16 against symbol `__TMC_END__' defined in .tm_clone_table section in c:/ti/ccsv6/tools/compiler/i686-pc-mingw32/bin/../lib/gcc/msp430-elf/4.8.0/430x/crtend.o
DownhillSlide.out section `.text' will not fit in region `ROM'
section __interrupt_vector_42 loaded at [0000ffd2,0000ffd3] overlaps section .text loaded at [00005c54,00010009]

I can disable/exclude a source file and compile, link and debug just fine.  So I tried adding the -mlarge linker flag, which results in this error message:

"error: ./Application/APP_Analog.o uses the small code model but c:/ti/ccsv6/tools/compiler/i686-pc-mingw32/bin/../lib/gcc/msp430-elf/4.8.0/../../../../msp430-elf/lib/430x/large/crt0.o uses the large data model"

Here is where I added the linker flag in the project settings in CCSv6 IDE:

I really need to address how to overcome this linker issue to continue developing the application.  Any suggestions would be greatly appreciated. Thanks.

**Attention** This is a public forum